goto doESCkey;
}
#endif
- if (ins_eol(c) && !p_im)
+ if (ins_eol(c) == FAIL && !p_im)
goto doESCkey; /* out of memory */
auto_format(FALSE, FALSE);
inserted_space = FALSE;
/*
* Handle CR or NL in insert mode.
- * Return TRUE when out of memory or can't undo.
+ * Return FAIL when out of memory or can't undo.
*/
static int
ins_eol(int c)
foldOpenCursor();
#endif
- return (!i);
+ return i;
}
#ifdef FEAT_DIGRAPHS
* "second_line_indent": indent for after ^^D in Insert mode or if flag
* OPENLINE_COM_LIST
*
- * Return TRUE for success, FALSE for failure
+ * Return OK for success, FAIL for failure
*/
int
open_line(
int newindent = 0; /* auto-indent of the new line */
int n;
int trunc_line = FALSE; /* truncate current line afterwards */
- int retval = FALSE; /* return value, default is FAIL */
+ int retval = FAIL; /* return value */
#ifdef FEAT_COMMENTS
int extra_len = 0; /* length of p_extra string */
int lead_len; /* length of comment leader */
}
#endif
- retval = TRUE; /* success! */
+ retval = OK; /* success! */
theend:
curbuf->b_p_pi = saved_pi;
vim_free(saved_line);