Mercurial > vim
annotate src/proto/match.pro @ 34487:67674e379c26 v9.1.0151
patch 9.1.0151: ml_get_buf_len() does not consider text properties
Commit: https://github.com/vim/vim/commit/a72d1be5a9984709fc66f460b443ad4a38506113
Author: Christian Brabandt <cb@256bit.org>
Date: Tue Mar 5 20:43:25 2024 +0100
patch 9.1.0151: ml_get_buf_len() does not consider text properties
Problem: ml_get_buf_len() does not consider text properties
(zeertzj)
Solution: Store text length excluding text properties length
in addition in the memline
related #14123
closes: #14133
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Mar 2024 21:00:02 +0100 |
parents | baec4e1cee43 |
children |
rev | line source |
---|---|
21054
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* match.c */ |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 void clear_matches(win_T *wp); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 void init_search_hl(win_T *wp, match_T *search_hl); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 void prepare_search_hl(win_T *wp, match_T *search_hl, linenr_T lnum); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 int prepare_search_hl_line(win_T *wp, linenr_T lnum, colnr_T mincol, char_u **line, match_T *search_hl, int *search_attr); |
26334
baec4e1cee43
patch 8.2.3698: match highlighting continues over breakindent
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
6 int update_search_hl(win_T *wp, linenr_T lnum, colnr_T col, char_u **line, match_T *search_hl, int *has_match_conc, int *match_conc, int did_line_attr, int lcs_eol_one, int *on_last_col); |
21054
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 int get_prevcol_hl_flag(win_T *wp, match_T *search_hl, long curcol); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 void get_search_match_hl(win_T *wp, match_T *search_hl, long col, int *char_attr); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 void f_clearmatches(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 void f_getmatches(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 void f_setmatches(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 void f_matchadd(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 void f_matchaddpos(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 void f_matcharg(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 void f_matchdelete(typval_T *argvars, typval_T *rettv); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 void ex_match(exarg_T *eap); |
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 /* vim: set ft=c : */ |