Mercurial > vim
view src/proto/evalbuffer.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 | 7831da568864 |
children |
line wrap: on
line source
/* evalbuffer.c */ int set_ref_in_buffers(int copyID); buf_T *buflist_find_by_name(char_u *name, int curtab_only); buf_T *find_buffer(typval_T *avar); void f_append(typval_T *argvars, typval_T *rettv); void f_appendbufline(typval_T *argvars, typval_T *rettv); void f_bufadd(typval_T *argvars, typval_T *rettv); void f_bufexists(typval_T *argvars, typval_T *rettv); void f_buflisted(typval_T *argvars, typval_T *rettv); void f_bufload(typval_T *argvars, typval_T *rettv); void f_bufloaded(typval_T *argvars, typval_T *rettv); void f_bufname(typval_T *argvars, typval_T *rettv); void f_bufnr(typval_T *argvars, typval_T *rettv); void f_bufwinid(typval_T *argvars, typval_T *rettv); void f_bufwinnr(typval_T *argvars, typval_T *rettv); void f_deletebufline(typval_T *argvars, typval_T *rettv); void f_getbufinfo(typval_T *argvars, typval_T *rettv); void f_getbufline(typval_T *argvars, typval_T *rettv); void f_getbufoneline(typval_T *argvars, typval_T *rettv); void f_getline(typval_T *argvars, typval_T *rettv); void f_setbufline(typval_T *argvars, typval_T *rettv); void f_setline(typval_T *argvars, typval_T *rettv); void switch_buffer(bufref_T *save_curbuf, buf_T *buf); void restore_buffer(bufref_T *save_curbuf); void switch_to_win_for_buf(buf_T *buf, switchwin_T *switchwin, bufref_T *save_curbuf); void restore_win_for_buf(switchwin_T *switchwin, bufref_T *save_curbuf); /* vim: set ft=c : */