aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-08 08:50:43 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-08 08:52:10 +0800
commit80a566b55fd90fb49271e04106ddafb8ccb470cb (patch)
tree63a5e005dc8bf388bc2adf8b4df70c06f5f46b59
parente93f22f28abe8f774c5e081073cb2eac0f5085fd (diff)
downloadrneovim-80a566b55fd90fb49271e04106ddafb8ccb470cb.tar.gz
rneovim-80a566b55fd90fb49271e04106ddafb8ccb470cb.tar.bz2
rneovim-80a566b55fd90fb49271e04106ddafb8ccb470cb.zip
vim-patch:9.0.0410: struct member cts_lnum is unused
Problem: Struct member cts_lnum is unused. Solution: Delete it. https://github.com/vim/vim/commit/d7633114af2365e32080b61af473db347a3489c2
-rw-r--r--src/nvim/plines.c1
-rw-r--r--src/nvim/plines.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/plines.c b/src/nvim/plines.c
index c676dcddbd..176f86c691 100644
--- a/src/nvim/plines.c
+++ b/src/nvim/plines.c
@@ -292,7 +292,6 @@ void init_chartabsize_arg(chartabsize_T *cts, win_T *wp, linenr_T lnum, colnr_T
char *ptr)
{
cts->cts_win = wp;
- cts->cts_lnum = lnum;
cts->cts_vcol = col;
cts->cts_line = line;
cts->cts_ptr = ptr;
diff --git a/src/nvim/plines.h b/src/nvim/plines.h
index 7b228f3e91..f463d82f10 100644
--- a/src/nvim/plines.h
+++ b/src/nvim/plines.h
@@ -6,7 +6,6 @@
// Argument for lbr_chartabsize().
typedef struct {
win_T *cts_win;
- linenr_T cts_lnum; // zero when not using text properties
char *cts_line; // start of the line
char *cts_ptr; // current position in line