mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
vim-patch:8.0.1758: open_line() returns TRUE/FALSE for success/failure
Problem: open_line() returns TRUE/FALSE for success/failure.
Solution: Return OK or FAIL.
24a2d7264f
This commit is contained in:
@@ -98,7 +98,7 @@ open_line (
|
||||
colnr_T newcol = 0; // new cursor column
|
||||
int newindent = 0; // auto-indent of the new line
|
||||
bool trunc_line = false; // truncate current line afterwards
|
||||
bool retval = false; // return value, default is false
|
||||
bool retval = false; // return value
|
||||
int extra_len = 0; // length of p_extra string
|
||||
int lead_len; // length of comment leader
|
||||
char_u *lead_flags; // position in 'comments' for comment leader
|
||||
@@ -922,7 +922,7 @@ open_line (
|
||||
next_line = NULL;
|
||||
}
|
||||
|
||||
retval = TRUE; /* success! */
|
||||
retval = true; // success!
|
||||
theend:
|
||||
curbuf->b_p_pi = saved_pi;
|
||||
xfree(saved_line);
|
||||
|
Reference in New Issue
Block a user