aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-17 23:27:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-17 23:30:56 +0800
commit4b7aafc2f42e3eee44ae430fcb5e643fb23d7b4b (patch)
tree91c8fff160c5e962fd5993b651885ee904dc8967
parent7139035bfd90698ce7214b507b2f8a7766398a68 (diff)
downloadrneovim-4b7aafc2f42e3eee44ae430fcb5e643fb23d7b4b.tar.gz
rneovim-4b7aafc2f42e3eee44ae430fcb5e643fb23d7b4b.tar.bz2
rneovim-4b7aafc2f42e3eee44ae430fcb5e643fb23d7b4b.zip
fix(memline): use long instead of linenr_T for db_line_count
-rw-r--r--src/nvim/memline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 955074e1f2..5f21a3dd0e 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -131,7 +131,8 @@ struct data_block {
unsigned db_free; // free space available
unsigned db_txt_start; // byte where text starts
unsigned db_txt_end; // byte just after data block
- linenr_T db_line_count; // number of lines in this block
+ // linenr_T db_line_count;
+ long db_line_count; // number of lines in this block
unsigned db_index[1]; // index for start of line (actually bigger)
// followed by empty space up to db_txt_start
// followed by the text in the lines until