summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-24 19:36:43 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-24 19:36:43 +0200
commit24a2d7264fc2394f69a9a890b34d1f09cf63b14e (patch)
tree019cd2bc57bd90b9e1a29f62d86c7f6843c1909c /src/edit.c
parentb691de05f69905fe417f583083d7e3cc16eb865e (diff)
patch 8.0.1758: open_line() returns TRUE/FALSE for success/failurev8.0.1758
Problem: open_line() returns TRUE/FALSE for success/failure. Solution: Return OK or FAIL.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index 8746436fba..f29fbc79be 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1374,7 +1374,7 @@ doESCkey:
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;
@@ -10201,7 +10201,7 @@ ins_tab(void)
/*
* 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)
@@ -10266,7 +10266,7 @@ ins_eol(int c)
foldOpenCursor();
#endif
- return (!i);
+ return i;
}
#ifdef FEAT_DIGRAPHS