Mercurial > vim
comparison src/structs.h @ 28469:9ff0e5a29037 v8.2.4759
patch 8.2.4759: CurSearch highlight does not work for multi-line match
Commit: https://github.com/vim/vim/commit/693ccd11606b59eb0f81c6c1948679e61ada4022
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 16 12:04:37 2022 +0100
patch 8.2.4759: CurSearch highlight does not work for multi-line match
Problem: CurSearch highlight does not work for multi-line match.
Solution: Check cursor position before adjusting columns. (closes https://github.com/vim/vim/issues/10133)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Apr 2022 13:15:03 +0200 |
parents | 80ed5ad30d28 |
children | 3a16a350614f |
comparison
equal
deleted
inserted
replaced
28468:ac542ed74852 | 28469:9ff0e5a29037 |
---|---|
3335 int attr; // attributes to be used for a match | 3335 int attr; // attributes to be used for a match |
3336 int attr_cur; // attributes currently active in win_line() | 3336 int attr_cur; // attributes currently active in win_line() |
3337 linenr_T first_lnum; // first lnum to search for multi-line pat | 3337 linenr_T first_lnum; // first lnum to search for multi-line pat |
3338 colnr_T startcol; // in win_line() points to char where HL starts | 3338 colnr_T startcol; // in win_line() points to char where HL starts |
3339 colnr_T endcol; // in win_line() points to char where HL ends | 3339 colnr_T endcol; // in win_line() points to char where HL ends |
3340 int is_addpos; // position specified directly by | 3340 char is_addpos; // position specified directly by |
3341 // matchaddpos(). TRUE/FALSE | 3341 // matchaddpos(). TRUE/FALSE |
3342 char has_cursor; // TRUE if the cursor is inside the match, used for | |
3343 // CurSearch | |
3342 #ifdef FEAT_RELTIME | 3344 #ifdef FEAT_RELTIME |
3343 proftime_T tm; // for a time limit | 3345 proftime_T tm; // for a time limit |
3344 #endif | 3346 #endif |
3345 } match_T; | 3347 } match_T; |
3346 | 3348 |