diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 22:32:06 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-16 23:05:33 -0400 |
commit | 58ad7fc578125aed6187944eb44c574041479fbf (patch) | |
tree | 3ee0f84968042afaab7b96f01a1c27bbcdeb3ced /src/nvim/ex_getln.c | |
parent | 015df9c66e66283277c3709376bf6d1f83d55f53 (diff) | |
download | rneovim-58ad7fc578125aed6187944eb44c574041479fbf.tar.gz rneovim-58ad7fc578125aed6187944eb44c574041479fbf.tar.bz2 rneovim-58ad7fc578125aed6187944eb44c574041479fbf.zip |
ops: refactor get_spec_reg()
Return value is bool.
errmsg (param) is bool in here and in getaltfname().
allocated (param) is bool.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 1192f3cb84..14303bae77 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -3286,10 +3286,9 @@ void restore_cmdline_alloc(char_u *p) /// @returns FAIL for failure, OK otherwise static bool cmdline_paste(int regname, bool literally, bool remcr) { - long i; char_u *arg; char_u *p; - int allocated; + bool allocated; struct cmdline_info save_ccline; /* check for valid regname; also accept special characters for CTRL-R in @@ -3311,7 +3310,7 @@ static bool cmdline_paste(int regname, bool literally, bool remcr) * things like going to another buffer when evaluating an expression. */ save_cmdline(&save_ccline); ++textlock; - i = get_spec_reg(regname, &arg, &allocated, TRUE); + const bool i = get_spec_reg(regname, &arg, &allocated, true); --textlock; restore_cmdline(&save_ccline); |