aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_search.vim
Commit message (Collapse)AuthorAge
* test/old: use CheckFunction, enable more testsJan Edmund Lazo2021-03-27
| | | | | | Some skipped tests have custom error messages. Use ":CheckFunction" command for standard error message on missing function.
* vim-patch:8.2.2045: highlighting a character too much with incsearchJan Edmund Lazo2021-03-27
| | | | | | Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes vim/vim#7360) https://github.com/vim/vim/commit/448465e6872905967c97a56cd45307530795653c
* test/old: cherry-pick patch v8.1.1955 changes for test_trycatch.vimJan Edmund Lazo2020-12-11
|
* vim-patch:8.2.1296: some part of using 'smarcase' was not testedJan Edmund Lazo2020-12-06
| | | | | | Problem: Some part of using 'smarcase' was not tested. Solution: Add more tests. (Dominique Pellé, closes vim/vim#6538) https://github.com/vim/vim/commit/d66cdcd43a598825add743bc95642cd8ed705252
* vim-patch:8.1.0811: too many #ifdefsJan Edmund Lazo2020-11-12
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter. https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5
* vim-patch:8.2.1787: crash with 'incsearch' and very long lineJan Edmund Lazo2020-10-02
| | | | | | | | | | | | | | Problem: Crash with 'incsearch' and very long line. Solution: Check whether regprog becomes NULL. (closes vim/vim#7063) https://github.com/vim/vim/commit/795aaa1e84d76a6fe066694de9876b8a21cbe40c N/A patches for version.c: vim-patch:8.2.1784: commits are not scanned for security problems Problem: commits are not scanned for security problems Solution: Enable Github code scanning. (Christian Brabandt, closes vim/vim#7057) https://github.com/vim/vim/commit/fa79be6b10e1d34fd697a56e85f6c0ce101f3d62
* 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.0640: get E14 while typing command :tab with 'incsearch' setJan Edmund Lazo2020-09-13
| | | | | | | Problem: Get E14 while typing command :tab with 'incsearch' set. Solution: Do not give an error when looking for the command. (Yasuhiro Higashi) https://github.com/vim/vim/commit/548e5985734e4b216852205879daf9bfb00dbe5a
* vim-patch:8.1.0584: with search CTRL-L does not pick up composing charactersJan Edmund Lazo2020-09-13
| | | | | | | Problem: With search CTRL-L does not pick up composing characters. Solution: Check for composing characters. (Christian Brabandt, closes vim/vim#3682) [code change was accidentally included in 8.1.0579] https://github.com/vim/vim/commit/5f5e203c92365ac6399de3663637b73bf9fb6dfa
* vim-patch:8.1.0555: crash when last search pat is set but not last ↵Jan Edmund Lazo2020-09-13
| | | | | | | | | substitute pat Problem: Crash when last search pat is set but not last substitute pat. Solution: Do not mix up last search pattern and last subtitute pattern. (closes vim/vim#3647) https://github.com/vim/vim/commit/2fb8f684d888ad68b283ba8f9505106b5fb725be
* 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.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.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.2.0135: bracketed paste can still cause invalid memory accessJan Edmund Lazo2020-03-01
| | | | | | | Problem: Bracketed paste can still cause invalid memory access. (Dominique Pelle) Solution: Check for NULL pointer. https://github.com/vim/vim/commit/fe4bbac1166f2e4e3fa18cb966ec7305198c8176
* vim-patch:8.2.0133: invalid memory access with search commandJan Edmund Lazo2020-03-01
| | | | | | | Problem: Invalid memory access with search command. Solution: When :normal runs out of characters in bracketed paste mode break out of the loop.(closes vim/vim#5511) https://github.com/vim/vim/commit/98a336dd497d3422e7efeef9f24cc9e25aeb8a49
* 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
* doc: fix typosBrian Wignall2019-11-27
| | | | close #11459
* vim-patch:8.1.1483: skipped tests are not properly listedDaniel Hahler2019-08-22
| | | | | | | | | | Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return". https://github.com/vim/vim/commit/5d30ff19648d2ff0696cea97582b902f6a4ec0ba Skips quite some (N/A) tests. vim-patch:8.1.0503: missing change to diff test (included in cf1ffa916)
* vim-patch:8.1.0811: too many #ifdefsDaniel Hahler2019-08-22
| | | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter. https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5
* vim-patch:8.0.1238: incremental search only shows one matchJan Edmund Lazo2019-06-28
| | | | | | | Problem: Incremental search only shows one match. Solution: When 'incsearch' and and 'hlsearch' are both set highlight all matches. (haya14busa, closes vim/vim#2198) https://github.com/vim/vim/commit/2e51d9a0972080b087d566608472928d5b7b35d7
* vim-patch:8.1.0181: memory leak with trailing characters in skip expressionJan Edmund Lazo2019-06-23
| | | | | | Problem: Memory leak with trailing characters in skip expression. Solution: Free the return value. https://github.com/vim/vim/commit/a43ebe9454386427ca38c75810e2d36991f17812
* vim-patch:8.1.0112: no error when using bad arguments with searchpair()Jan Edmund Lazo2019-06-23
| | | | | | Problem: No error when using bad arguments with searchpair(). Solution: Add error messages. https://github.com/vim/vim/commit/3dddb09c98825acefa6f2d94bb369b8e00d7b3e5
* vim-patch:8.0.1239: cannot use a lambda for the skip argument to searchpair()Jan Edmund Lazo2019-06-23
| | | | | | | Problem: Cannot use a lambda for the skip argument to searchpair(). Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes vim/vim#1454, closes vim/vim#2265) https://github.com/vim/vim/commit/48570488f17e397183ea7d5c7ca67d6e4ffb013d
* vim-patch:8.1.1475: search string not displayed when 'rightleft' is seterw72019-06-07
| | | | | | Problem: Search string not displayed when 'rightleft' is set. Solution: Clear the right part of the old text. (closes vim/vim#4488, closes vim/vim#4489) https://github.com/vim/vim/commit/db294adc65d73ffa5cdf3d0ab45ccbf05b965414
* vim-patch:8.1.1214: old style tests #9948Jan Edmund Lazo2019-04-27
| | | | | | Problem: Old style tests. Solution: Move tests from test14 to new style test files. (Yegappan Lakshmanan, closes vim/vim#4308) https://github.com/vim/vim/commit/c6b37db1ba704455daa8f9e78bc1c2492fb81f40
* vim-patch:8.1.0973: pattern with syntax error gives threee error messagesJustin M. Keyes2019-03-01
| | | | | | | | Problem: Pattern with syntax error gives threee error messages. (Kuang-che Wu) Solution: Remove outdated internal error. Don't fall back to other engine after an error. https://github.com/vim/vim/commit/cd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50
* vim-patch:8.1.0965: search test failsJustin M. Keyes2019-03-01
| | | | | | Problem: Search test fails. Solution: Wait a bit longer for the 'ambiwidth' redraw. https://github.com/vim/vim/commit/e86ecbd92271ad86b543c71ca50452528f704ffb
* vim-patch:8.1.0963: illegal memory access when using 'incsearch'Justin M. Keyes2019-03-01
| | | | | | Problem: Illegal memory access when using 'incsearch'. Solution: Reset highlight_match when changing text. (closes vim/vim#4022) https://github.com/vim/vim/commit/4a7d2d3b407ed695450bb7f43166e2f2722a6836
* vim-patch:8.1.0985: crash with large number in regexpJustin M. Keyes2019-02-28
| | | | | | Problem: Crash with large number in regexp. (Kuang-che Wu) Solution: Check for long becoming negative int. (closes #) https://github.com/vim/vim/commit/ab350f89f9646e07aefe16a32ba3ddb847496b4a
* vim-patch:8.1.0276: no test for 'incsearch' highlighting with :sJan Edmund Lazo2019-02-17
| | | | | | Problem: No test for 'incsearch' highlighting with :s. Solution: Add a screendump test. https://github.com/vim/vim/commit/164251ff805e89a3d9a850a77e3139e28908f44a
* vim-patch:8.0.1417: test doesn't search for a sentenceJan Edmund Lazo2018-09-16
| | | | | | | Problem: Test doesn't search for a sentence. Still fails when searching for start of sentence. (Dominique Pelle) Solution: Add paren. Check for MAXCOL in dec(). https://github.com/vim/vim/commit/1bd999f982e783219a06e6c8f219df1d53ac7e77