aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.2.0637: incsearch highlighting does not work for ":sort!"Jan Edmund Lazo2020-09-14
| | | | | | Problem: Incsearch highlighting does not work for ":sort!". Solution: Skip over the exclamation point. (closes vim/vim#5983) https://github.com/vim/vim/commit/333015a46e916f566763ec44ae8669c0378767d9
* vim-patch:8.1.2338: using Visual mark sith :s gives E20 if not setJan Edmund Lazo2020-09-14
| | | | | | | | | | | | | | | | | | | | | Problem: Using Visual mark sith :s gives E20 if not set. Solution: Ignore errors when handling 'incsearch'. (closes vim/vim#3837) https://github.com/vim/vim/commit/c672525b487992306f69ceab093291ba3b8e4246 N/A patches for version.c: vim-patch:8.2.1526: line in testdir Makefile got commented out Problem: Line in testdir Makefile got commented out. (Christian Brabandt) Solution: Revert. https://github.com/vim/vim/commit/228e62975e7aef9d6224a5a7c43625c1c1494fc2 vim-patch:8.2.1675: MinGW: testdir makefile deletes non-existing file Problem: MinGW: testdir makefile deletes non-existing file. Solution: Use another way to delete the output file if it already exists. (Michael Soyka) https://github.com/vim/vim/commit/05c1acd5e1564ea4dbc7d4be26908af6909f43f6
* vim-patch:8.1.1704: C-R C-W does not work after C-G when using 'incsearch'Jan Edmund Lazo2020-09-13
| | | | | | Problem: C-R C-W does not work after C-G when using 'incsearch'. Solution: Put cursor at end of the match. (Yasuhiro Matsumoto, closes vim/vim#4664) https://github.com/vim/vim/commit/69a5b867940d25f68a782de5c1165d65b51fcafa
* vim-patch:8.1.1148: CTRL-L with 'incsearch' does not pick up char under cursorJan Edmund Lazo2020-09-13
| | | | | | | | Problem: CTRL-L with 'incsearch' does not pick up char under cursor. (Smylers) Solution: Do not compare the position with the cursor position. (Hirohito Higashi, closes vim/vim#3620) https://github.com/vim/vim/commit/730f48fe3691dc62331f3df23cb947bfc33a5add
* vim-patch:8.1.0499: :2vimgrep causes an ml_get errorJan Edmund Lazo2020-09-13
| | | | | | Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
* vim-patch:8.1.0552: saved last search pattern may not be restoredAufar Gilbran2020-09-11
| | | | | | | Problem: Saved last search pattern may not be restored. Solution: Call restore_last_search_pattern(). Add a check for balancing saving and restoring the last search pattern. https://github.com/vim/vim/commit/01a060da74b756b161e595b39a7877cb7612120a
* vim-patch:8.1.0399: 'hlsearch' highlight remains in other windowAufar Gilbran2020-09-11
| | | | | | | Problem: 'hlsearch' highlight remains in other window after cancelling command. Solution: Redraw all windows. Also remove unnecessary delays. (closes vim/vim#3437) https://github.com/vim/vim/commit/65985ac998713dfe0f0ff1dd49c5e3e8f17f4870
* vim-patch:8.1.0392: error while typing :/foo/s// with 'incsearch' enabledAufar Gilbran2020-09-11
| | | | | | Problem: Error while typing :/foo/s// with 'incsearch' enabled. Solution: Do not give search errors when highlighting matches. https://github.com/vim/vim/commit/50eb16c3b23235b21ce4494673a7741a9a196176
* vim-patch:8.1.0356: using :s with 'incsearch' prevents CTRL-R CTRL-WAufar Gilbran2020-09-11
| | | | | | | 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) https://github.com/vim/vim/commit/99f043a57d0be35ef72572b0429cf51525c3cd2b
* vim-patch:8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search patternAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' for :/foo/s//<Esc> changes last search pattern. Solution: Save the last search pattern earlier. https://github.com/vim/vim/commit/198cb66d652d3d8ac16226dcc929a11b0b720151
* vim-patch:8.1.0339: wrong highlight when 'incsearch' set and cancelling :sAufar Gilbran2020-09-11
| | | | | | Problem: Wrong highlight when 'incsearch' set and cancelling :s. Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe) https://github.com/vim/vim/commit/f13daa46da85a80dd05704cdde0660c2b2651a5a
* vim-patch:8.1.0321: 'incsearch' regression: /\v highlights everythingAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' regression: /\v highlights everything. Solution: Put back the empty_pattern() check. https://github.com/vim/vim/commit/4edfe2d2a2d70ea66a7f73e9b923c2d1f6246a57
* vim-patch:8.1.0320: too much 'incsearch' highlight for pat matching everythingAufar Gilbran2020-09-11
| | | | | | | 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. https://github.com/vim/vim/commit/8b0d5ce881ac16a36ea00018ba13a58b0fdb7534
* vim-patch:8.1.0296: command parsing for 'incsearch' is a bit uglyAufar Gilbran2020-09-11
| | | | | | Problem: Command parsing for 'incsearch' is a bit ugly. Solution: Return when there is no pattern. Put common checks together. https://github.com/vim/vim/commit/111bbd61e96d1d3ee4bc07ae435fd97b88413aba
* vim-patch:8.1.0295: no 'incsearch' highlighting for :vimgrep and similarAufar Gilbran2020-09-11
| | | | | | | 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) https://github.com/vim/vim/commit/264cf5cfaf40e704aea2578e70c15ed9a9d0161e
* vim-patch:8.1.0291: 'incsearch' highlighting not used for :sortAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' highlighting not used for :sort. Solution: Handle pattern in :sort command. https://github.com/vim/vim/commit/81f56536b1bc324eb173924a8cf4d7dbbf4f3fdb
* vim-patch:8.1.0286: 'incsearch' does not apply to :smagic and :snomagicAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' does not apply to :smagic and :snomagic. Solution: Add support. (Hirohito Higashi) https://github.com/vim/vim/commit/167ae42685dcd430800c51ac7339f7f0938a3e70
* vim-patch:8.1.0284: 'cursorline' highlighting wrong with 'incsearch'Aufar Gilbran2020-09-11
| | | | | | Problem: 'cursorline' highlighting wrong with 'incsearch'. Solution: Move the cursor back if the match is outside the range. https://github.com/vim/vim/commit/2f6a346a4cd2d5bdd6dc9b3209ebce7b6340221d
* vim-patch:8.1.0282: 'incsearch' does not work with command modifiersAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' does not work with command modifiers. Solution: Skip command modifiers. https://github.com/vim/vim/commit/33c4dbb74bdf41aadd193a704f597d4df20f0e47
* vim-patch:8.1.0280: 'incsearch' highlighting does not work for ":g!/"Aufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' highlighting does not work for ":g!/". Solution: Skip the exclamation mark. (Hirohito Higashi) https://github.com/vim/vim/commit/def7b1dc6104a6ce6d7c3e3a615231178601b124
* vim-patch:8.1.0279: 'incsearch' highlighting does not skip white spaceAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' highlighting does not skip white space. Solution: Skip white space after the command. (issue vim/vim#3321) https://github.com/vim/vim/commit/2b926fcb3c5d8bd09a219009336bbec7c66ae67e
* vim-patch:8.1.0278: 'incsearch' highlighting does not accept reverse rangeAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' highlighting does not accept reverse range. Solution: Swap the range when needed. (issue vim/vim#3321) https://github.com/vim/vim/commit/60d0871000e9abf3716ee035cba5b5a9d659e327
* vim-patch:8.1.0277: 'incsearch' highlighting wrong in a few casesAufar Gilbran2020-09-11
| | | | | | | Problem: 'incsearch' highlighting wrong in a few cases. Solution: Fix using last search pattern. Restore highlighting when changing command. (issue vim/vim#3321) https://github.com/vim/vim/commit/c7f08b7ee1c1ff2080d425c2fcdb6907c26fc98e
* vim-patch:8.1.0275: 'incsearch' with :s doesn't start at cursor lineAufar Gilbran2020-09-11
| | | | | | | 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. https://github.com/vim/vim/commit/976b847f43dd16eb6cd809d2dcab7dde6045e176
* vim-patch:8.1.0274: 'incsearch' triggers on ":source"Aufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' triggers on ":source". Solution: Check for the whole command name. https://github.com/vim/vim/commit/21f990e1c22ffa2fdb66a548ebbe25e6e7194776
* vim-patch:8.1.0273: invalid memory access when using 'incsearch'Aufar Gilbran2020-09-11
| | | | | | Problem: Invalid memory access when using 'incsearch'. Solution: Reset "patlen" when using previous search pattern. https://github.com/vim/vim/commit/ef73a28401cde680dc0d02d4b0fb19ed659ec1d3
* vim-patch:8.1.0271: 'incsearch' doesn't work for :s, :g or :vAufar Gilbran2020-09-11
| | | | | | Problem: 'incsearch' doesn't work for :s, :g or :v. Solution: Also use 'incsearch' for other commands that use a pattern. https://github.com/vim/vim/commit/b0acacd767a2b0618a7f3c08087708f4329580d0
* vim-patch:8.1.0265: the getcmdline() function is way too bigAufar Gilbran2020-09-11
| | | | | | Problem: The getcmdline() function is way too big. Solution: Factor out the incremental search highlighting. https://github.com/vim/vim/commit/0ee81cb63876e6ec1b2a6e0125295b43f1c63c7d
* Reuse inccommand preview window (fix #11529) (#12612)Ville Hakulinen2020-07-15
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* vim-patch:8.2.0111: VAR_SPECIAL is also used for booleansBilly Su2020-06-06
| | | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking. https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
* vim-patch:8.2.0089: crash when running out of memory in :setfiletype completionJan Edmund Lazo2020-06-04
| | | | | | Problem: Crash when running out of memory in :setfiletype completion. Solution: Do not allocate memory. (Dominique Pelle, closes vim/vim#5438) https://github.com/vim/vim/commit/f0f8055102c264b1d0c0a79bf742dc126fb447b9
* Merge #11851 'eval.c: factor out eval/userfunc.c'Justin M. Keyes2020-04-27
|\ | | | | vim-patch:7.4.2058
| * Merge #11851 'eval.c: factor out eval/userfunc.c'Justin M. Keyes2020-04-26
| |\ | | | | | | | | | vim-patch:7.4.2058
| | * rename: user_funcs -> userfuncJakub Łuczyński2020-02-13
| | | | | | | | | | | | Lets stick with vim for now
| | * fix: includesJakub Łuczyński2020-02-13
| | |
* | | vim-patch:8.1.2225: the "last used" info of a buffer is under usedRob Pilling2020-04-21
|/ / | | | | | | | | | | | | 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) https://github.com/vim/vim/commit/52410575be50d5c40bbe6380159df48cfc382ceb
* | vim-patch:8.1.2378: using old C style commentsJan Edmund Lazo2020-04-12
| | | | | | | | | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/5d18efecfd6c45d69f55268948a22cd0465bb955
* | Merge pull request #11746 from Billy4195/add_wildmenu_keyMatthieu Coudron2020-03-28
|\ \ | | | | | | [RFC] Wildmenu support C-E and C-Y as popupmenu
| * | ex_getln.c: wildmenu add cancel and apply opsBilly Su2020-01-23
| | |
* | | PVS/V618: fix printf-style args #11888Justin M. Keyes2020-02-22
| | | | | | | | | | | | We intentionally do not translate API errors. ref: https://github.com/neovim/neovim/issues/6150
* | | vim-patch:8.1.2187: error for bad regexp even though regexp is not usedJan Edmund Lazo2020-02-16
| |/ |/| | | | | | | | | | | 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) https://github.com/vim/vim/commit/b40c2576d4e0e2dd2c580414c45947d88556d76d
* | doc: fix typos [ci skip] #11787Hye Sung Jung2020-01-30
| |
* | wildmode: fix wildmode=longest,full with pum #11690akovaski2020-01-21
|/ | | | | | With "wildmode=longest,full" + wildoptions=pum, wildmode should show popupmenu after Tab-Tab, not the horizontal wildmenu. Fixes #11622
* vim-patch:8.0.1769: refactor save/restore of viewstate #11701Jan Edmund Lazo2020-01-11
| | | | | Problem: Repeated saving and restoring viewstate for 'incsearch'. Solution: Use a structure. https://github.com/vim/vim/commit/9b25af36204c0511eab08d621688f0f2008fc68e
* Remove (void) hacks, Mark unused attrsJan Edmund Lazo2020-01-08
|
* vim-patch:8.2.0099: use of NULL pointer when out of memoryJan Edmund Lazo2020-01-07
| | | | | | Problem: Use of NULL pointer when out of memory. Solution: Check for NULL pointer. (Dominique Pelle, closes vim/vim#5449) https://github.com/vim/vim/commit/8b7aa2f9b238df916c161cdacda032c25d72a0ae
* vim-patch:8.0.1356: using simalt in a GUIEnter autocommand inserts charactersJan Edmund Lazo2019-12-30
| | | | | | | Problem: Using simalt in a GUIEnter autocommand inserts strange characters. (Chih-Long Chang) Solution: Ignore K_NOP in Insert mode. (closes vim/vim#2379) https://github.com/vim/vim/commit/c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62
* ex_getln: fix pvs/v781Jan Edmund Lazo2019-12-26
|
* vim-patch:8.0.1767: with 'incsearch' text may jump up and downJan Edmund Lazo2019-12-22
| | | | | | | Problem: With 'incsearch' text may jump up and down. () Solution: Besides w_botline also save and restore w_empty_rows. (closes # 2530) https://github.com/vim/vim/commit/9d34d90210ba52ebaf45973282e5921f5af364c7
* vim-patch:8.1.2385: open cmdline window with feedkeys() #11516Jan Edmund Lazo2019-12-04
| | | | | | Problem: Opening cmdline window with feedkeys() does not work. (Yegappan Lakshmanan) Solution: Recognize K_CMDWIN also when ex_normal_busy is set. https://github.com/vim/vim/commit/85db5475982e166ec5bb1c8c9a5c8bf062d49ed1