Aufar Gilbran
f7d2e37e36
vim-patch:8.1.0399: 'hlsearch' highlight remains in other window
...
Problem: 'hlsearch' highlight remains in other window after cancelling
command.
Solution: Redraw all windows. Also remove unnecessary delays. (closes vim/vim#3437 )
65985ac998
2020-09-11 10:37:52 +08:00
Aufar Gilbran
112092fa15
vim-patch:8.1.0392: error while typing :/foo/s// with 'incsearch' enabled
...
Problem: Error while typing :/foo/s// with 'incsearch' enabled.
Solution: Do not give search errors when highlighting matches.
50eb16c3b2
2020-09-11 10:37:52 +08:00
Aufar Gilbran
b0042cafc0
vim-patch:8.1.0356: using :s with 'incsearch' prevents CTRL-R CTRL-W
...
Problem: Using :s with 'incsearch' prevents CTRL-R CTRL-W. (Boris Staletic)
Solution: When past the pattern put cursor back in the start position.
(closes vim/vim#3413 )
99f043a57d
2020-09-11 10:37:52 +08:00
Aufar Gilbran
e2dc2a6bd7
vim-patch:8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search pattern
...
Problem: 'incsearch' for :/foo/s//<Esc> changes last search pattern.
Solution: Save the last search pattern earlier.
198cb66d65
2020-09-11 10:37:52 +08:00
Aufar Gilbran
b59c293c25
vim-patch:8.1.0339: wrong highlight when 'incsearch' set and cancelling :s
...
Problem: Wrong highlight when 'incsearch' set and cancelling :s.
Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe)
f13daa46da
2020-09-11 10:37:52 +08:00
Aufar Gilbran
f2743cfb65
vim-patch:8.1.0321: 'incsearch' regression: /\v highlights everything
...
Problem: 'incsearch' regression: /\v highlights everything.
Solution: Put back the empty_pattern() check.
4edfe2d2a2
2020-09-11 10:37:52 +08:00
Aufar Gilbran
4770a2bac5
vim-patch:8.1.0320: too much 'incsearch' highlight for pat matching everything
...
Problem: Too much 'incsearch' highlight for pattern matching everything.
Solution: Add the skiplen to the command and remove the line range.
(Christian Brabandt) Check for empty pattern earlier.
8b0d5ce881
2020-09-11 10:37:52 +08:00
Aufar Gilbran
5f5d08a88e
vim-patch:8.1.0296: command parsing for 'incsearch' is a bit ugly
...
Problem: Command parsing for 'incsearch' is a bit ugly.
Solution: Return when there is no pattern. Put common checks together.
111bbd61e9
2020-09-11 10:37:52 +08:00
Aufar Gilbran
77bb48e740
vim-patch:8.1.0295: no 'incsearch' highlighting for :vimgrep and similar
...
Problem: No 'incsearch' highlighting for :vimgrep and similar commands.
Solution: Parse the :vimgrep command and similar ones to locate the search
pattern. (Hirohito Higashi, closes vim/vim#3344 )
264cf5cfaf
2020-09-11 10:33:20 +08:00
Aufar Gilbran
ab7e101540
vim-patch:8.1.0291: 'incsearch' highlighting not used for :sort
...
Problem: 'incsearch' highlighting not used for :sort.
Solution: Handle pattern in :sort command.
81f56536b1
2020-09-11 10:33:20 +08:00
Aufar Gilbran
c0102c140c
vim-patch:8.1.0286: 'incsearch' does not apply to :smagic and :snomagic
...
Problem: 'incsearch' does not apply to :smagic and :snomagic.
Solution: Add support. (Hirohito Higashi)
167ae42685
2020-09-11 10:33:20 +08:00
Aufar Gilbran
68f6abef16
vim-patch:8.1.0284: 'cursorline' highlighting wrong with 'incsearch'
...
Problem: 'cursorline' highlighting wrong with 'incsearch'.
Solution: Move the cursor back if the match is outside the range.
2f6a346a4c
2020-09-11 10:33:20 +08:00
Aufar Gilbran
b24dabf266
vim-patch:8.1.0282: 'incsearch' does not work with command modifiers
...
Problem: 'incsearch' does not work with command modifiers.
Solution: Skip command modifiers.
33c4dbb74b
2020-09-11 10:33:20 +08:00
Aufar Gilbran
841ec4316c
vim-patch:8.1.0280: 'incsearch' highlighting does not work for ":g!/"
...
Problem: 'incsearch' highlighting does not work for ":g!/".
Solution: Skip the exclamation mark. (Hirohito Higashi)
def7b1dc61
2020-09-11 10:31:41 +08:00
Aufar Gilbran
8ae47ddf63
vim-patch:8.1.0279: 'incsearch' highlighting does not skip white space
...
Problem: 'incsearch' highlighting does not skip white space.
Solution: Skip white space after the command. (issue vim/vim#3321 )
2b926fcb3c
2020-09-11 10:31:41 +08:00
Aufar Gilbran
83f3218b28
vim-patch:8.1.0278: 'incsearch' highlighting does not accept reverse range
...
Problem: 'incsearch' highlighting does not accept reverse range.
Solution: Swap the range when needed. (issue vim/vim#3321 )
60d0871000
2020-09-11 10:31:41 +08:00
Aufar Gilbran
50da4d4f45
vim-patch:8.1.0277: 'incsearch' highlighting wrong in a few cases
...
Problem: 'incsearch' highlighting wrong in a few cases.
Solution: Fix using last search pattern. Restore highlighting when changing
command. (issue vim/vim#3321 )
c7f08b7ee1
2020-09-11 10:31:41 +08:00
Aufar Gilbran
dd08f6367b
vim-patch:8.1.0275: 'incsearch' with :s doesn't start at cursor line
...
Problem: 'incsearch' with :s doesn't start at cursor line.
Solution: Set cursor before parsing address. (closes vim/vim#3318 )
Also accept a match at the start of the first line.
976b847f43
2020-09-11 10:31:41 +08:00
Aufar Gilbran
9e834a89df
vim-patch:8.1.0274: 'incsearch' triggers on ":source"
...
Problem: 'incsearch' triggers on ":source".
Solution: Check for the whole command name.
21f990e1c2
2020-09-11 10:31:41 +08:00
Aufar Gilbran
5eb7133021
vim-patch:8.1.0273: invalid memory access when using 'incsearch'
...
Problem: Invalid memory access when using 'incsearch'.
Solution: Reset "patlen" when using previous search pattern.
ef73a28401
2020-09-11 10:31:41 +08:00
Aufar Gilbran
e8a8b9ed08
vim-patch:8.1.0271: 'incsearch' doesn't work for :s, :g or :v
...
Problem: 'incsearch' doesn't work for :s, :g or :v.
Solution: Also use 'incsearch' for other commands that use a pattern.
b0acacd767
2020-09-11 10:31:41 +08:00
Aufar Gilbran
8ac4748577
vim-patch:8.1.0265: the getcmdline() function is way too big
...
Problem: The getcmdline() function is way too big.
Solution: Factor out the incremental search highlighting.
0ee81cb638
2020-09-11 10:29:12 +08:00
Ville Hakulinen
a02a267f8a
Reuse inccommand preview window ( fix #11529 ) ( #12612 )
...
* Reuse inccommand preview window
Currently, show_sub (inside ex_substitute) creates a new split on each
run for its existing buffer, and ex_substitute calls close_windows for
it. This functionality seems to relay in delayed operations on window
structures where the close event on the newest window is "cancelled" by
win_grid_alloc. But for multigrid, there is optimization in place in
win_grid_alloc which causes any (unnecessary?) allocations to be
skipped, and thus inccommand preview window is not preserved but closed
immediately. Alternative fix would be to remove said optimization, but
the whole "lets create a new split each time and trash the earlier
window" seems too wasteful.
Fix #11529
* Update failing test
The failing test sets inccommand=split and does `:%s/.`, but isn't
expecting to get any contents for the preview window, other than the
windows status line. Update the test to include the preview window
contents too.
2020-07-15 08:46:47 -04:00
Billy Su
1805fb469a
vim-patch:8.2.0111: VAR_SPECIAL is also used for booleans
...
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
9b4a15d5db
2020-06-06 23:24:58 +08:00
Jan Edmund Lazo
f5c1314cb0
vim-patch:8.2.0089: crash when running out of memory in :setfiletype completion
...
Problem: Crash when running out of memory in :setfiletype completion.
Solution: Do not allocate memory. (Dominique Pelle, closes vim/vim#5438 )
f0f8055102
2020-06-04 20:52:52 -04:00
Justin M. Keyes
fc98f2d581
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-27 01:45:30 -04:00
Justin M. Keyes
6b050a145d
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-26 20:01:58 -07:00
Rob Pilling
978a6bcaf2
vim-patch:8.1.2225: the "last used" info of a buffer is under used
...
Problem: The "last used" info of a buffer is under used.
Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used
field. (Andi Massimino, closes vim/vim#4722 )
52410575be
2020-04-21 21:40:22 +01:00
Jan Edmund Lazo
73dc9e943c
vim-patch:8.1.2378: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
5d18efecfd
2020-04-12 15:56:40 -04:00
Matthieu Coudron
e700a88bb6
Merge pull request #11746 from Billy4195/add_wildmenu_key
...
[RFC] Wildmenu support C-E and C-Y as popupmenu
2020-03-28 14:25:54 +01:00
Justin M. Keyes
93c6eb4a66
PVS/V618: fix printf-style args #11888
...
We intentionally do not translate API errors.
ref: https://github.com/neovim/neovim/issues/6150
2020-02-22 12:59:39 -08:00
Jan Edmund Lazo
986eafce47
vim-patch:8.1.2187: error for bad regexp even though regexp is not used
...
Problem: Error for bad regexp even though regexp is not used when writing
a file. (Arseny Nasokin)
Solution: Ignore regexp errors. (closes vim/vim#5059 )
b40c2576d4
2020-02-16 07:49:44 -05:00
Jakub Łuczyński
5e815edece
rename: user_funcs -> userfunc
...
Lets stick with vim for now
2020-02-13 14:11:55 +01:00
Jakub Łuczyński
d50c1123d5
fix: includes
2020-02-13 14:11:53 +01:00
Hye Sung Jung
14a8b3b98c
doc: fix typos [ci skip] #11787
2020-01-30 22:56:34 -08:00
Billy Su
961c528afc
ex_getln.c: wildmenu add cancel and apply ops
2020-01-23 12:12:42 +08:00
akovaski
97dcc48c99
wildmode: fix wildmode=longest,full with pum #11690
...
With "wildmode=longest,full" + wildoptions=pum, wildmode should show
popupmenu after Tab-Tab, not the horizontal wildmenu.
Fixes #11622
2020-01-21 00:35:01 -08:00
Jan Edmund Lazo
462ee281b7
vim-patch:8.0.1769: refactor save/restore of viewstate #11701
...
Problem: Repeated saving and restoring viewstate for 'incsearch'.
Solution: Use a structure.
9b25af3620
2020-01-11 13:21:21 -08:00
Jan Edmund Lazo
45759e44f9
Remove (void) hacks, Mark unused attrs
2020-01-08 01:08:55 -05:00
Jan Edmund Lazo
3d6cca5a9d
vim-patch:8.2.0099: use of NULL pointer when out of memory
...
Problem: Use of NULL pointer when out of memory.
Solution: Check for NULL pointer. (Dominique Pelle, closes vim/vim#5449 )
8b7aa2f9b2
2020-01-07 23:24:38 -05:00
Jan Edmund Lazo
5e1cad6d33
vim-patch:8.0.1356: using simalt in a GUIEnter autocommand inserts characters
...
Problem: Using simalt in a GUIEnter autocommand inserts strange characters.
(Chih-Long Chang)
Solution: Ignore K_NOP in Insert mode. (closes vim/vim#2379 )
c5aa55db7e
2019-12-30 01:15:18 -05:00
Jan Edmund Lazo
251177b63b
ex_getln: fix pvs/v781
2019-12-26 00:29:15 -05:00
Jan Edmund Lazo
bc8da6cdbe
vim-patch:8.0.1767: with 'incsearch' text may jump up and down
...
Problem: With 'incsearch' text may jump up and down. ()
Solution: Besides w_botline also save and restore w_empty_rows.
(closes # 2530)
9d34d90210
2019-12-22 11:50:16 -05:00
Jan Edmund Lazo
ed424655be
vim-patch:8.1.2385: open cmdline window with feedkeys() #11516
...
Problem: Opening cmdline window with feedkeys() does not work. (Yegappan
Lakshmanan)
Solution: Recognize K_CMDWIN also when ex_normal_busy is set.
85db547598
2019-12-04 23:04:19 -08:00
Daniel Hahler
f33371c03f
vim-patch:8.1.2017: cannot execute commands after closing cmdline window #11479
...
Problem: Cannot execute commands after closing the cmdline window.
Solution: Also trigger BufEnter and WinEnter. (closes vim/vim#4762 )
96e38a86a7
Fixes https://github.com/neovim/neovim/issues/11279 .
2019-11-29 09:51:25 -08:00
Jan Edmund Lazo
226ad89a2c
vim-patch:8.1.0223: completing shell command finds sub-directories in $PATH
...
Problem: Completing shell command finds sub-directories in $PATH.
Solution: Remove EW_DIR when completing an item in $PATH. (Jason Franklin)
6ab9e429da
2019-11-25 03:29:49 -05:00
Rob Pilling
d04ab11f24
Prevent prompts during inccommand previews
...
For example, "Backwards range given, OK to swap (y/n)?" on each keypress.
2019-10-31 19:22:22 +00:00
Jaehwang Jerry Jung
034077ed1c
vim-patch:8.1.2173: searchit() has too many arguments
...
Problem: Searchit() has too many arguments.
Solution: Move optional arguments to a struct. Add the "wrapped" argument.
92ea26b925
2019-10-27 03:35:19 +09:00
Jurica Bradaric
0586a4b512
vim-patch:8.1.1588: in :let-heredoc line continuation is recognized
...
Problem: In :let-heredoc line continuation is recognized.
Solution: Do not consume line continuation. (Ozaki Kiichi, closes vim/vim#4580 )
e96a2498f9
2019-10-07 14:14:13 +02:00
Jan Edmund Lazo
09232958ff
vim-patch:8.1.2120: some MB_ macros are more complicated than necessary
...
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
1614a14901
2019-10-06 21:11:38 -04:00