diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-05-18 21:38:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-18 21:38:45 +0200 |
commit | 796139ae3ac89e27ee96dce3c7fdb87d8c839f53 (patch) | |
tree | 40044765188bc84813b2e4b37e0d4a51ff3681de /src/ex_getln.c | |
parent | 485b62710004431a16feb4eb861365d082304a08 (diff) | |
download | vim-git-796139ae3ac89e27ee96dce3c7fdb87d8c839f53.tar.gz |
patch 8.2.2870: CmdlineChange event triggered twice for CTRL-Rv8.2.2870
Problem: CmdlineChange event triggered twice for CTRL-R.
Solution: Return CMDLINE_NOT_CHANGED from cmdline_insert_reg().
(closes #8219)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 4ebc34110..e7d71a510 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1253,8 +1253,11 @@ cmdline_insert_reg(int *gotesc UNUSED) } #endif } + // remove the double quote redrawcmd(); - return CMDLINE_CHANGED; + + // The text has been stuffed, the command line didn't change yet. + return CMDLINE_NOT_CHANGED; } /* |