summaryrefslogtreecommitdiffstats
path: root/src/search.c
AgeCommit message (Collapse)Author
2020-10-20patch 8.2.1872: matchfuzzy() does not prefer sequential matchesv8.2.1872Bram Moolenaar
Problem: Matchfuzzy() does not prefer sequential matches. Solution: Give sequential matches a higher bonus. (Christian Brabandt, closes #7140)
2020-10-11patch 8.2.1837: using "gn" after "gN" does not workv8.2.1837Bram Moolenaar
Problem: Using "gn" after "gN" does not work. Solution: Extend the other end of the Visual area. (closes #7109)
2020-10-10patch 8.2.1823: "gN" does not select the matched stringv8.2.1823Bram Moolenaar
Problem: "gN" does not select the matched string. Solution: Move the cursor to the start of the match.
2020-10-02patch 8.2.1787: crash with 'incsearch' and very long linev8.2.1787Bram Moolenaar
Problem: Crash with 'incsearch' and very long line. Solution: Check whether regprog becomes NULL. (closes #7063)
2020-09-22patch 8.2.1728: compiler warning for using uninitialized variablev8.2.1728Bram Moolenaar
Problem: Compiler warning for using uninitialized variable. (John Marriott) Solution: Initialize "neighbor".
2020-09-22patch 8.2.1726: fuzzy matching only works on stringsv8.2.1726Bram Moolenaar
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-11patch 8.2.1665: cannot do fuzzy string matchingv8.2.1665Bram Moolenaar
Problem: Cannot do fuzzy string matching. Solution: Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932)
2020-09-05patch 8.2.1620: searchcount() test failsv8.2.1620Bram Moolenaar
Problem: searchcount() test fails. Solution: Restore default flag value.
2020-09-05patch 8.2.1614: Vim9: cannot pass "true" to searchcount()v8.2.1614Bram Moolenaar
Problem: Vim9: cannot pass "true" to searchcount(). Solution: Use tv_get_bool_chk(). (closes #6854)
2020-08-04patch 8.2.1364: invalid memory access when searching for raw stringv8.2.1364Bram Moolenaar
Problem: Invalid memory access when searching for raw string. Solution: Check for delimiter match before following quote. (closes #6578)
2020-06-12patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar
Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
2020-06-04patch 8.2.0902: using searchcount() in 'statusline' causes an errorv8.2.0902Bram Moolenaar
Problem: Using searchcount() in 'statusline' causes an error. Solution: Avoid saving/restoring the search patten recursively. (closes #6194)
2020-06-03patch 8.2.0896: crash when calling searchcount() with a stringv8.2.0896Bram Moolenaar
Problem: Crash when calling searchcount() with a string. Solution: Check the argument is a dict. (closes #6192)
2020-06-02patch 8.2.0887: searchcount().exact_match is 1 right after a matchv8.2.0887Bram Moolenaar
Problem: Searchcount().exact_match is 1 right after a match. Solution: Use LT_POS() instead of LTOREQ_POS(). (closes #6189)
2020-06-01patch 8.2.0884: searchcount() test fails on slower systemsv8.2.0884Bram Moolenaar
Problem: Searchcount() test fails on slower systems. Solution: Set a longer timeout.
2020-06-01patch 8.2.0880: leaking memory when using searchcount()v8.2.0880Bram Moolenaar
Problem: Leaking memory when using searchcount(). Solution: Free the last used search pattern.
2020-06-01patch 8.2.0879: compiler warning for unused function argumentv8.2.0879Bram Moolenaar
Problem: Compiler warning for unused function argument. Solution: Add UNUSED.
2020-06-01patch 8.2.0877: cannot get the search statisticsv8.2.0877Bram Moolenaar
Problem: Cannot get the search statistics. Solution: Add the searchcount() function. (Fujiwara Takuya, closes #4446)
2020-05-29patch 8.2.0840: search match count wrong when only match is in foldv8.2.0840Bram Moolenaar
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-04-29patch 8.2.0660: the search.c file is a bit bigv8.2.0660Bram Moolenaar
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-12patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar
Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-11patch 8.2.0544: memory leak in search testv8.2.0544Bram Moolenaar
Problem: Memory leak in search test. Solution: Free msgbuf. (Dominique Pelle, closes #5912)
2020-04-02patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar
Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
2020-02-21patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295Bram Moolenaar
Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes #5665)
2020-02-12patch 8.2.0250: test_clear_search_pat() is unusedv8.2.0250Bram Moolenaar
Problem: test_clear_search_pat() is unused. Solution: Remove the function. (Yegappan Lakshmanan, closes #5624)
2020-02-05patch 8.2.0212: missing search/substitute pattern hardly testedv8.2.0212Bram Moolenaar
Problem: Missing search/substitute pattern hardly tested. Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan, closes #5579)
2019-12-23patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035Bram Moolenaar
Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages.
2019-12-05patch 8.1.2394: using old C style commentsv8.1.2394Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-11-30patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar
Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
2019-11-21patch 8.1.2332: missing file in refactoringv8.1.2332Bram Moolenaar
Problem: Missing file in refactoring. Solution: Update missing file.
2019-11-21patch 8.1.2330: vi' does not always work when 'selection' is exclusivev8.1.2330Bram Moolenaar
Problem: vi' does not always work when 'selection' is exclusive. Solution: Adjust start position.
2019-11-17patch 8.1.2314: vi' sometimes does not select anythingv8.1.2314Bram Moolenaar
Problem: vi' sometimes does not select anything. Solution: Recognize an empty selection. (Christian Brabandt, closes #5183)
2019-11-17patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar
Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
2019-11-02patch 8.1.2244: 'wrapscan' is not used for "gn"v8.1.2244Bram Moolenaar
Problem: 'wrapscan' is not used for "gn". Solution: Only reset 'wrapscan' for the first search round. (closes #5164)
2019-10-26patch 8.1.2218: "gN" is off by one in Visual modev8.1.2218Bram Moolenaar
Problem: "gN" is off by one in Visual mode. Solution: Check moving forward. (Christian Brabandt, #5075)
2019-10-24patch 8.1.2207: "gn" doesn't work quite rightv8.1.2207Bram Moolenaar
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-19patch 8.1.2178: accessing uninitialized memory in testv8.1.2178Bram Moolenaar
Problem: Accessing uninitialized memory in test. Solution: Check if there was a match before using the match position. (Dominique Pelle, closes #5088)
2019-10-18patch 8.1.2173: searchit() has too many argumentsv8.1.2173Bram Moolenaar
Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument.
2019-10-09patch 8.1.2126: viminfo not sufficiently testedv8.1.2126Bram Moolenaar
Problem: Viminfo not sufficiently tested. Solution: Add more test cases. Clean up comments. (Yegappan Lakshmanan, closes #5032)
2019-10-06patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar
Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
2019-09-28patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
2019-09-21patch 8.1.2062: the mouse code is spread outv8.1.2062Bram Moolenaar
Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
2019-09-06patch 8.1.1992: the search stat moves when wrapping at the end of the bufferv8.1.1992Bram Moolenaar
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-03patch 8.1.1970: search stat space wrong, no test for 8.1.1965v8.1.1970Bram Moolenaar
Problem: Search stat space wrong, no test for 8.1.1965. Solution: Fix check for cmd_silent. Add a test. (Christian Brabandt)
2019-09-02patch 8.1.1965: search count message is not displayed when using a mappingv8.1.1965Bram Moolenaar
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-08-21patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar
Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
2019-08-18patch 8.1.1880: cannot show extra info for completion in a popup windowv8.1.1880Bram Moolenaar
Problem: Cannot show extra info for completion in a popup window. Solution: Add the "popup" entry in 'completeopt'.
2019-08-06patch 8.1.1823: command line history code is spread outv8.1.1823Bram Moolenaar
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-05patch 8.1.1819: :pedit does not work with a popup preview windowv8.1.1819Bram Moolenaar
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-07-23patch 8.1.1736: viminfo support is spread outv8.1.1736Bram Moolenaar
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.