diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-17 14:15:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 14:15:32 +0800 |
commit | 9e7f92e59a7fbbc0e266700db1f25278eb30cb2a (patch) | |
tree | e378e7e6d6ba2e4678d92b28c2a67f4930e5a607 /src/nvim/eval/funcs.c | |
parent | 53c398d8f44f1796c216402c953512eb57733529 (diff) | |
parent | 006334f3a7014d5d23df617ed619377464d4956f (diff) | |
download | rneovim-9e7f92e59a7fbbc0e266700db1f25278eb30cb2a.tar.gz rneovim-9e7f92e59a7fbbc0e266700db1f25278eb30cb2a.tar.bz2 rneovim-9e7f92e59a7fbbc0e266700db1f25278eb30cb2a.zip |
Merge pull request #19404 from zeertzjq/vim-8.2.0670
vim-patch:8.2.{0670,0698,1294,1984,2424,2426,2427,5029}: textlock patches
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r-- | src/nvim/eval/funcs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index f231146d7c..80586caf8e 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -1062,11 +1062,6 @@ static void f_complete(typval_T *argvars, typval_T *rettv, FunPtr fptr) return; } - const int save_textlock = textlock; - // "textlock" is set when evaluating 'completefunc' but we can change text - // here. - textlock = 0; - // Check for undo allowed here, because if something was already inserted // the line was already saved for undo and this check isn't done. if (!undo_allowed(curbuf)) { @@ -1081,7 +1076,6 @@ static void f_complete(typval_T *argvars, typval_T *rettv, FunPtr fptr) set_completion(startcol - 1, argvars[1].vval.v_list); } } - textlock = save_textlock; } /// "complete_add()" function |