1
0
forked from aniani/vim

patch 9.0.1234: the code style has to be checked manually

Problem:    The code style has to be checked manually.
Solution:   Add basic code style checks in a test.  Fix or avoid uncovered
            problems.
This commit is contained in:
Bram Moolenaar
2023-01-22 21:14:53 +00:00
parent 3d79f0a430
commit ebfec1c531
34 changed files with 319 additions and 149 deletions

View File

@@ -161,7 +161,7 @@ search_regcomp(
add_to_history(HIST_SEARCH, pat, TRUE, NUL);
if (used_pat)
*used_pat = pat;
*used_pat = pat;
vim_free(mr_pattern);
#ifdef FEAT_RIGHTLEFT
@@ -2641,7 +2641,7 @@ findmatchlimit(
* (actually, we skip #\( et al)
*/
if (curbuf->b_p_lisp
&& vim_strchr((char_u *)"(){}[]", c) != NULL
&& vim_strchr((char_u *)"{}()[]", c) != NULL
&& pos.col > 1
&& check_prevcol(linep, pos.col, '\\', NULL)
&& check_prevcol(linep, pos.col - 1, '#', NULL))