summaryrefslogtreecommitdiffstats
path: root/src/search.c
AgeCommit message (Collapse)Author
2023-08-19patch 9.0.1738: Duplicate code to reverse a stringv9.0.1738zeertzjq
Problem: Duplicate code to reverse a string Solution: Move reverse_text() to strings.c and remove string_reverse(). closes: #12847 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-05-14patch 9.0.1555: setcharsearch() does not clear last searched char properlyv9.0.1555zeertzjq
Problem: setcharsearch() does not clear last searched char properly. Solution: Do not accept lastc_bytelen smaller than one. (closes #12398)
2023-05-06patch 9.0.1518: search stats not always visible when searching backwardsv9.0.1518Christian Brabandt
Problem: Search stats not always visible when searching backwards. Solution: Do not display the top/bot message on top of the search stats. (Christian Brabandt, closes #12322, closes #12222)
2023-04-29patch 9.0.1499: using uninitialized memory with fuzzy matchingv9.0.1499Bram Moolenaar
Problem: Using uninitialized memory with fuzzy matching. Solution: Initialize the arrays used to store match positions.
2023-03-07patch 9.0.1391: "clear" macros are not always usedv9.0.1391Yegappan Lakshmanan
Problem: "clear" macros are not always used. Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more places. (Yegappan Lakshmanan, closes #12104)
2023-01-31patch 9.0.1270: crash when using search stat in narrow screenv9.0.1270zeertzjq
Problem: Crash when using search stat in narrow screen. Solution: Check length of message. (closes #11921)
2023-01-23patch 9.0.1237: code is indented more than necessaryv9.0.1237Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11858)
2023-01-22patch 9.0.1234: the code style has to be checked manuallyv9.0.1234Bram Moolenaar
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
2022-12-23patch 9.0.1092: search error message doesn't show used patternv9.0.1092Rob Pilling
Problem: Search error message doesn't show used pattern. Solution: Pass the actually used pattern to where the error message is given. (Rob Pilling, closes #11742)
2022-11-26patch 9.0.0953: part of making search more efficient is missingv9.0.0953Bram Moolenaar
Problem: Part of making search more efficient is missing. Solution: Add the change in searchit().
2022-11-25patch 9.0.0950: the pattern "\_s\zs" matches at EOLv9.0.0950Bram Moolenaar
Problem: The pattern "\_s\zs" matches at EOL. Solution: Make the pattern "\_s\zs" match at the start of the next line. (closes #11617)
2022-08-31patch 9.0.0338: return value of list_append_list() not always checkedv9.0.0338Bram Moolenaar
Problem: Return value of list_append_list() not always checked. Solution: Check return value and handle failure.
2022-08-30patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan
Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-07-23patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar
Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
2022-07-06patch 9.0.0044: typos in comments, wrapping linesv9.0.0044Bram Moolenaar
Problem: Typos in comments, wrapping lines. Solution: Adjust comments. Wrap lines.
2022-06-17patch 8.2.5116: "limit" option of matchfuzzy() not always respectedv8.2.5116Kazuyuki Miyagi
Problem: "limit" option of matchfuzzy() not always respected. Solution: Remove "else". (Kazuyuki Miyagi, closes #10586)
2022-06-16patch 8.2.5114: time limit on searchpair() does not work properlyv8.2.5114Bram Moolenaar
Problem: Time limit on searchpair() does not work properly. Solution: Set the time limit once instead of for each regexp. (closes #10562)
2022-06-05patch 8.2.5057: using gettimeofday() for timeout is very inefficientv8.2.5057Paul Ollis
Problem: Using gettimeofday() for timeout is very inefficient. Solution: Set a platform dependent timer. (Paul Ollis, closes #10505)
2022-06-01patch 8.2.5050: using freed memory when searching for pattern in pathv8.2.5050Bram Moolenaar
Problem: Using freed memory when searching for pattern in path. Solution: Make a copy of the line.
2022-05-21patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar
Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-11patch 8.2.4939: matchfuzzypos() with "matchseq" does not have all positionsv8.2.4939zeertzjq
Problem: matchfuzzypos() with "matchseq" does not have all positions. Solution: Also add a position for white space. (closes #10404)
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-04-16patch 8.2.4765: function matchfuzzy() sorts too many itemsv8.2.4765Yegappan Lakshmanan
Problem: Function matchfuzzy() sorts too many items. Solution: Only put matches in the array. (Yegappan Lakshmanan, closes #10208)
2022-04-16patch 8.2.4760: using matchfuzzy() on a long list can take a whilev8.2.4760Yasuhiro Matsumoto
Problem: Using matchfuzzy() on a long list can take a while. Solution: Add a limit to the number of matches. (Yasuhiro Matsumoto, closes #10189)
2022-04-10patch 8.2.4732: duplicate code to free fuzzy matchesv8.2.4732Bram Moolenaar
Problem: Duplicate code to free fuzzy matches. Solution: Bring back fuzmatch_str_free().
2022-04-10patch 8.2.4727: unused codev8.2.4727Dominique Pelle
Problem: Unused code. Solution: Remove code and add #ifdefs. (Dominique Pellé, closes #10136)
2022-04-04patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan
Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
2022-02-27patch 8.2.4479: no fuzzy completieon for maps and abbreviationsv8.2.4479Yegappan Lakshmanan
Problem: No fuzzy completieon for maps and abbreviations. Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan, closes #9856)
2022-02-25patch 8.2.4465: fuzzy completion does not order matches properlyv8.2.4465Yegappan Lakshmanan
Problem: Fuzzy completion does not order matches properly. Solution: Do not use regular expression match. (Yegappan Lakshmanan, closes #9843)
2022-02-24patch 8.2.4463: completion only uses strict matchingv8.2.4463Yegappan Lakshmanan
Problem: Completion only uses strict matching. Solution: Add the "fuzzy" item for 'wildoptions'. (Yegappan Lakshmanan, closes #9803)
2022-02-16patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo252
Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
2022-02-14patch 8.2.4378: incsearch HL broken when calling searchcount in 'tabLine'v8.2.4378Christian Brabandt
Problem: Incsearch highlight broken when calling searchcount() in 'tabLine' function. (Mirko Palmer) Solution: Save and restore the incsearch state. (Christian Brabandt, closes #9763, closes #9633)
2022-01-04patch 8.2.4001: insert complete code uses global variablesv8.2.4001Yegappan Lakshmanan
Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
2022-01-02patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3972: error messages are spread outv8.2.3972Bram Moolenaar
Problem: Error messages are spread out. Solution: Move the last errors from globals.h to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-29patch 8.2.3938: line comment start is also found in a stringv8.2.3938Bram Moolenaar
Problem: Line comment start is also found in a string. Solution: Skip line comments in a string.
2021-12-12patch 8.2.3787: no proper formatting of a C line comment after a statementv8.2.3787Bram Moolenaar
Problem: No proper formatting of a C line comment after a statement. Solution: Find the start of the line comment, insert the comment leader and indent the comment properly.
2021-10-15patch 8.2.3513: using freed memory when using a timer and searchingv8.2.3513Bram Moolenaar
Problem: Using freed memory when using a timer and searching. (Dominique Pellé) Solution: Allocated mr_pattern.
2021-08-05patch 8.2.3292: underscore in very magic pattern causes a hangv8.2.3292Christian Brabandt
Problem: Underscore in very magic pattern causes a hang. Pattern with \V are case sensitive. (Yutao Yuan) Solution: Adjust condition for magicness and advance pointer. (Christian Brabandt, closes #8707, closes #8704, closes #8705)
2021-08-01patch 8.2.3265: smartcase does not work correctly in very magic patternv8.2.3265Christian Brabandt
Problem: Smartcase does not work correctly in very magic pattern. Solution: Take the magicness into account when skipping over regexp items. (Christian Brabandt, closes #8682, closes #7845)
2021-07-31patch 8.2.3255: ci" finds following string but ci< and others don'tv8.2.3255Connor Lane Smith
Problem: ci" finds following string but ci< and others don't. Solution: When not inside an object find the start. (Connor Lane Smit, closes #8670)
2021-07-27patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan
Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
2021-07-20patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar
Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
2021-07-20patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
2021-06-02patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata
Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
2021-04-26patch 8.2.2813: cannot grep using fuzzy matchingv8.2.2813Yegappan Lakshmanan
Problem: Cannot grep using fuzzy matching. Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)