mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.1.0163: Calling STRLEN() to compute ml_line_textlen when not needed
Problem: Calling STRLEN() to compute ml_line_textlen when not needed. Solution: Use 0 when STRLEN() will be required and call STRLEN() later. (zeertzjq) closes: #14155 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
14759ded57
commit
82e079df81
@@ -802,8 +802,8 @@ typedef struct memline
|
||||
#define ML_ALLOCATED 0x10 // ml_line_ptr is an allocated copy
|
||||
int ml_flags;
|
||||
|
||||
colnr_T ml_line_len; // length of the cached line + textproperties, including NUL
|
||||
colnr_T ml_line_textlen;// length of the cached line, including NUL
|
||||
colnr_T ml_line_len; // length of the cached line + NUL + text properties
|
||||
colnr_T ml_line_textlen;// length of the cached line + NUL, 0 if not known yet
|
||||
linenr_T ml_line_lnum; // line number of cached line, 0 if not valid
|
||||
char_u *ml_line_ptr; // pointer to cached line
|
||||
|
||||
|
Reference in New Issue
Block a user