diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-24 19:36:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-24 19:36:43 +0200 |
commit | 24a2d7264fc2394f69a9a890b34d1f09cf63b14e (patch) | |
tree | 019cd2bc57bd90b9e1a29f62d86c7f6843c1909c /src/misc1.c | |
parent | b691de05f69905fe417f583083d7e3cc16eb865e (diff) | |
download | vim-git-24a2d7264fc2394f69a9a890b34d1f09cf63b14e.tar.gz |
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/misc1.c')
-rw-r--r-- | src/misc1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc1.c b/src/misc1.c index 531c5e423..de79c8e81 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -588,7 +588,7 @@ cin_is_cinword(char_u *line) * "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( @@ -606,7 +606,7 @@ 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 */ @@ -1642,7 +1642,7 @@ open_line( } #endif - retval = TRUE; /* success! */ + retval = OK; /* success! */ theend: curbuf->b_p_pi = saved_pi; vim_free(saved_line); |