aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-01 17:34:19 +0800
committerGitHub <noreply@github.com>2024-11-01 09:34:19 +0000
commitcbd8b2c1622e0c1cb4d38b65730e259eb6c100df (patch)
tree3300c416bd92aa912fcb2084853130d1f758331e /src/nvim/ops.h
parent9b357e30fdd0a575480182872331fdb87e9cc331 (diff)
downloadrneovim-cbd8b2c1622e0c1cb4d38b65730e259eb6c100df.tar.gz
rneovim-cbd8b2c1622e0c1cb4d38b65730e259eb6c100df.tar.bz2
rneovim-cbd8b2c1622e0c1cb4d38b65730e259eb6c100df.zip
vim-patch:9.1.0824: too many strlen() calls in register.c (#31022)
Problem: too many strlen() calls in register.c Solution: refactor code, add string_T struct to keep track of string lengths (John Marriott) closes: vim/vim#15952 https://github.com/vim/vim/commit/79f6ffd388299ef3b1c95cbe658785e6e66df144 Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'src/nvim/ops.h')
-rw-r--r--src/nvim/ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.h b/src/nvim/ops.h
index dfa2d4b112..ed7e5f7466 100644
--- a/src/nvim/ops.h
+++ b/src/nvim/ops.h
@@ -105,7 +105,7 @@ enum GRegFlags {
/// Definition of one register
typedef struct {
- char **y_array; ///< Pointer to an array of line pointers.
+ String *y_array; ///< Pointer to an array of Strings.
size_t y_size; ///< Number of lines in y_array.
MotionType y_type; ///< Register type
colnr_T y_width; ///< Register width (only valid for y_type == kBlockWise).