aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-01 23:11:09 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-01 23:19:25 -0400
commit44c111e49f4c7c015bf66855fd6f2f69f1e02c07 (patch)
treeb8426fc57530a42fc38441cad72344e6b86a0785 /src/nvim/misc1.c
parentc45a859171090746c8b81f183474c22e489b8ad0 (diff)
downloadrneovim-44c111e49f4c7c015bf66855fd6f2f69f1e02c07.tar.gz
rneovim-44c111e49f4c7c015bf66855fd6f2f69f1e02c07.tar.bz2
rneovim-44c111e49f4c7c015bf66855fd6f2f69f1e02c07.zip
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. https://github.com/vim/vim/commit/24a2d7264fc2394f69a9a890b34d1f09cf63b14e
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 7e9d68a4b4..4032210213 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -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);