Inserting register literally (e.g. Ctrl-R +
or Ctrl-R Ctrl-R "
) in commandline didn't trigger incsearch or hlsearch.
Steps to reproduce:
vim --clean --cmd 'set incsearch hlsearch | let @"="text" | put'
/
to start searching then type Ctrl-R Ctrl-R "
.text
is not highlighted.I also found that cmdline_insert_reg()
returns only CMDLINE_NOT_CHANGED
or GOTO_NORMAL_MODE
. So, the checks of the returned value was redundant and the goto cmdline_changed;
line was not executed.
This PR fixes them.
(I'm not sure how to add a test for this...)
https://github.com/vim/vim/pull/11960
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@k-takata pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
Merging #11960 (32f0211) into master (6642982) will decrease coverage by
0.82%
.
The diff coverage is87.50%
.
@@ Coverage Diff @@ ## master #11960 +/- ## ========================================== - Coverage 81.90% 81.08% -0.82% ========================================== Files 164 154 -10 Lines 193719 183288 -10431 Branches 43796 41373 -2423 ========================================== - Hits 158666 148621 -10045 + Misses 22218 21701 -517 - Partials 12835 12966 +131
Flag | Coverage Δ | |
---|---|---|
huge-clang-none | 82.62% <87.50%> (+<0.01%) |
⬆️ |
huge-gcc-none | ? |
|
huge-gcc-testgui | ? |
|
huge-gcc-unittests | 0.29% <0.00%> (-0.01%) |
⬇️ |
linux | 81.08% <87.50%> (-1.26%) |
⬇️ |
mingw-x64-HUGE | ? |
|
mingw-x86-HUGE | ? |
|
windows | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
src/ex_getln.c | 83.70% <87.50%> (-2.33%) |
⬇️ |
src/if_perl.xs | 54.50% <0.00%> (-17.82%) |
⬇️ |
src/regexp_nfa.c | 80.52% <0.00%> (-9.11%) |
⬇️ |
src/arabic.c | 85.86% <0.00%> (-8.70%) |
⬇️ |
src/typval.c | 82.00% <0.00%> (-7.99%) |
⬇️ |
src/regexp_bt.c | 78.52% <0.00%> (-7.46%) |
⬇️ |
src/vim9execute.c | 82.32% <0.00%> (-6.96%) |
⬇️ |
src/json.c | 77.84% <0.00%> (-5.47%) |
⬇️ |
src/vim9instr.c | 76.94% <0.00%> (-4.96%) |
⬇️ |
src/vim9compile.c | 86.70% <0.00%> (-4.54%) |
⬇️ |
... and 137 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@k-takata commented on this pull request.
In src/ex_getln.c:
> @@ -1252,7 +1254,7 @@ cmdline_insert_reg(int *gotesc UNUSED) redrawcmd(); // The text has been stuffed, the command line didn't change yet.
This comment should be updated, but I'm not sure what is the best explanation.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Your reproduction steps can be used for a test. It needs to be a screendump test to see the highlighting.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.