Bram Moolenaar
28f224b2c1
patch 8.2.1823: "gN" does not select the matched string
...
Problem: "gN" does not select the matched string.
Solution: Move the cursor to the start of the match.
2020-10-10 16:45:25 +02:00
Bram Moolenaar
795aaa1e84
patch 8.2.1787: crash with 'incsearch' and very long line
...
Problem: Crash with 'incsearch' and very long line.
Solution: Check whether regprog becomes NULL. (closes #7063 )
2020-10-02 20:36:01 +02:00
Bram Moolenaar
c53e9c57a9
patch 8.2.1728: compiler warning for using uninitialized variable
...
Problem: Compiler warning for using uninitialized variable. (John Marriott)
Solution: Initialize "neighbor".
2020-09-22 22:08:32 +02:00
Bram Moolenaar
4f73b8e9cc
patch 8.2.1726: fuzzy matching only works on strings
...
Problem: Fuzzy matching only works on strings.
Solution: Support passing a dict. Add matchfuzzypos() to also get the match
positions. (Yegappan Lakshmanan, closes #6947 )
2020-09-22 20:33:50 +02:00
Bram Moolenaar
635414dd2f
patch 8.2.1665: cannot do fuzzy string matching
...
Problem: Cannot do fuzzy string matching.
Solution: Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932 )
2020-09-11 22:25:15 +02:00
Bram Moolenaar
4140c4f3ff
patch 8.2.1620: searchcount() test fails
...
Problem: searchcount() test fails.
Solution: Restore default flag value.
2020-09-05 23:16:00 +02:00
Bram Moolenaar
597aaac9d2
patch 8.2.1614: Vim9: cannot pass "true" to searchcount()
...
Problem: Vim9: cannot pass "true" to searchcount().
Solution: Use tv_get_bool_chk(). (closes #6854 )
2020-09-05 21:21:16 +02:00
Bram Moolenaar
282f9c64e5
patch 8.2.1364: invalid memory access when searching for raw string
...
Problem: Invalid memory access when searching for raw string.
Solution: Check for delimiter match before following quote. (closes #6578 )
2020-08-04 21:46:18 +02:00
Bram Moolenaar
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +02:00
Bram Moolenaar
442a85369f
patch 8.2.0902: using searchcount() in 'statusline' causes an error
...
Problem: Using searchcount() in 'statusline' causes an error.
Solution: Avoid saving/restoring the search patten recursively.
(closes #6194 )
2020-06-04 20:56:09 +02:00
Bram Moolenaar
14681627f3
patch 8.2.0896: crash when calling searchcount() with a string
...
Problem: Crash when calling searchcount() with a string.
Solution: Check the argument is a dict. (closes #6192 )
2020-06-03 22:57:39 +02:00
Bram Moolenaar
57f75a5a36
patch 8.2.0887: searchcount().exact_match is 1 right after a match
...
Problem: Searchcount().exact_match is 1 right after a match.
Solution: Use LT_POS() instead of LTOREQ_POS(). (closes #6189 )
2020-06-02 22:06:21 +02:00
Bram Moolenaar
ea6561af92
patch 8.2.0884: searchcount() test fails on slower systems
...
Problem: Searchcount() test fails on slower systems.
Solution: Set a longer timeout.
2020-06-01 21:32:45 +02:00
Bram Moolenaar
109aece79d
patch 8.2.0880: leaking memory when using searchcount()
...
Problem: Leaking memory when using searchcount().
Solution: Free the last used search pattern.
2020-06-01 19:08:54 +02:00
Bram Moolenaar
f9ca08e95f
patch 8.2.0879: compiler warning for unused function argument
...
Problem: Compiler warning for unused function argument.
Solution: Add UNUSED.
2020-06-01 18:56:03 +02:00
Bram Moolenaar
e8f5ec0d30
patch 8.2.0877: cannot get the search statistics
...
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes #4446 )
2020-06-01 17:28:35 +02:00
Bram Moolenaar
6cb0726215
patch 8.2.0840: search match count wrong when only match is in fold
...
Problem: Search match count wrong when only match is in fold.
Solution: Update search stats when in a closed fold. (Christian Brabandt,
closes #6160 , closes #6152 )
2020-05-29 22:49:43 +02:00
Bram Moolenaar
ed8ce057b7
patch 8.2.0660: the search.c file is a bit big
...
Problem: The search.c file is a bit big.
Solution: Split off the text object code to a separate file. (Yegappan
Lakshmanan, closes #6007 )
2020-04-29 21:04:15 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
880e4d9117
patch 8.2.0544: memory leak in search test
...
Problem: Memory leak in search test.
Solution: Free msgbuf. (Dominique Pelle, closes #5912 )
2020-04-11 21:31:28 +02:00
Bram Moolenaar
e8c4abbbd7
patch 8.2.0502: Vim9: some code is not tested
...
Problem: Vim9: some code is not tested.
Solution: Add more tests. Fix uncovered problems.
2020-04-02 21:13:25 +02:00
Bram Moolenaar
c036e87bd7
patch 8.2.0295: highlighting for :s wrong when using different separator
...
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665 )
2020-02-21 21:30:52 +01:00
Bram Moolenaar
4f5776c17c
patch 8.2.0250: test_clear_search_pat() is unused
...
Problem: test_clear_search_pat() is unused.
Solution: Remove the function. (Yegappan Lakshmanan, closes #5624 )
2020-02-12 22:15:19 +01:00
Bram Moolenaar
07ada5ff2f
patch 8.2.0212: missing search/substitute pattern hardly tested
...
Problem: Missing search/substitute pattern hardly tested.
Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan,
closes #5579 )
2020-02-05 20:38:22 +01:00
Bram Moolenaar
53989554a4
patch 8.2.0035: saving and restoring called_emsg is clumsy
...
Problem: Saving and restoring called_emsg is clumsy.
Solution: Count the number of error messages.
2019-12-23 22:59:18 +01:00
Bram Moolenaar
63d9e730f7
patch 8.1.2394: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 21:10:38 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
556ae8ea28
patch 8.1.2332: missing file in refactoring
...
Problem: Missing file in refactoring.
Solution: Update missing file.
2019-11-21 22:27:22 +01:00
Bram Moolenaar
94d9f4fa65
patch 8.1.2330: vi' does not always work when 'selection' is exclusive
...
Problem: vi' does not always work when 'selection' is exclusive.
Solution: Adjust start position.
2019-11-21 20:55:26 +01:00
Bram Moolenaar
7170b295b0
patch 8.1.2314: vi' sometimes does not select anything
...
Problem: vi' sometimes does not select anything.
Solution: Recognize an empty selection. (Christian Brabandt, closes #5183 )
2019-11-17 17:32:28 +01:00
Bram Moolenaar
eda1da0c9a
patch 8.1.2313: debugging where a delay comes from is not easy
...
Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
2019-11-17 17:06:33 +01:00
Bram Moolenaar
82cf7f6df7
patch 8.1.2244: 'wrapscan' is not used for "gn"
...
Problem: 'wrapscan' is not used for "gn".
Solution: Only reset 'wrapscan' for the first search round. (closes #5164 )
2019-11-02 23:22:47 +01:00
Bram Moolenaar
453c19257f
patch 8.1.2218: "gN" is off by one in Visual mode
...
Problem: "gN" is off by one in Visual mode.
Solution: Check moving forward. (Christian Brabandt, #5075 )
2019-10-26 14:42:09 +02:00
Bram Moolenaar
edaad6e0a0
patch 8.1.2207: "gn" doesn't work quite right
...
Problem: "gn" doesn't work quite right. (Jaehwang Jerry Jung)
Solution: Improve and simplify the search logic. (Christian Brabandt,
closes #5103 , closes #5075 )
2019-10-24 15:23:37 +02:00
Bram Moolenaar
15ee567809
patch 8.1.2178: accessing uninitialized memory in test
...
Problem: Accessing uninitialized memory in test.
Solution: Check if there was a match before using the match position.
(Dominique Pelle, closes #5088 )
2019-10-19 14:35:02 +02:00
Bram Moolenaar
92ea26b925
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.
2019-10-18 20:53:34 +02:00
Bram Moolenaar
6bd1d77067
patch 8.1.2126: viminfo not sufficiently tested
...
Problem: Viminfo not sufficiently tested.
Solution: Add more test cases. Clean up comments. (Yegappan Lakshmanan,
closes #5032 )
2019-10-09 22:01:25 +02:00
Bram Moolenaar
1614a14901
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.
2019-10-06 22:00:13 +02:00
Bram Moolenaar
8c96af9c05
patch 8.1.2096: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_COMMENTS.
2019-09-28 19:05:57 +02:00
Bram Moolenaar
b20b9e14dd
patch 8.1.2062: the mouse code is spread out
...
Problem: The mouse code is spread out.
Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan,
closes #4959 )
2019-09-21 20:48:04 +02:00
Bram Moolenaar
16b58ae9f3
patch 8.1.1992: the search stat moves when wrapping at the end of the buffer
...
Problem: The search stat moves when wrapping at the end of the buffer.
Solution: Put the "W" in front instead of at the end.
2019-09-06 20:40:21 +02:00
Bram Moolenaar
19e8ac72e9
patch 8.1.1970: search stat space wrong, no test for 8.1.1965
...
Problem: Search stat space wrong, no test for 8.1.1965.
Solution: Fix check for cmd_silent. Add a test. (Christian Brabandt)
2019-09-03 22:23:38 +02:00
Bram Moolenaar
359ad1a6f9
patch 8.1.1965: search count message is not displayed when using a mapping
...
Problem: The search count message is not displayed when using a mapping.
(Gary Johnson)
Solution: Ignore cmd_silent for showing the search count. (Christian
Brabandt)
2019-09-02 21:44:59 +02:00
Bram Moolenaar
e2c453d38f
patch 8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
2019-08-21 14:37:09 +02:00
Bram Moolenaar
576a4a6ff1
patch 8.1.1880: cannot show extra info for completion in a popup window
...
Problem: Cannot show extra info for completion in a popup window.
Solution: Add the "popup" entry in 'completeopt'.
2019-08-18 15:25:17 +02:00
Bram Moolenaar
d7663c22c6
patch 8.1.1823: command line history code is spread out
...
Problem: Command line history code is spread out.
Solution: Put the code in a new file. (Yegappan Lakshmanan, closes #4779 )
Also graduate the +cmdline_hist feature.
2019-08-06 21:59:57 +02:00
Bram Moolenaar
1b6d9c4215
patch 8.1.1819: :pedit does not work with a popup preview window
...
Problem: :pedit does not work with a popup preview window.
Solution: Avoid aborting with an error. (fixes #4777 ) Also double check
that after prepare_tagpreview() the current window is not a
popup window.
2019-08-05 21:52:04 +02:00
Bram Moolenaar
c3328169d5
patch 8.1.1736: viminfo support is spread out
...
Problem: Viminfo support is spread out.
Solution: Move more viminfo code to viminfo.c. (Yegappan Lakshmanan,
closes #4717 ) Reorder code to make most functions static.
2019-07-23 22:15:25 +02:00
Bram Moolenaar
db294adc65
patch 8.1.1475: search string not displayed when 'rightleft' is set
...
Problem: Search string not displayed when 'rightleft' is set.
Solution: Clear the right part of the old text. (closes #4488 , closes #4489 )
2019-06-06 12:49:29 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00