aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-04-24 18:38:48 +0200
committerMatthieu Coudron <mattator@gmail.com>2020-04-24 20:28:44 +0200
commitd20142a31f40140ae789e20d86094ecccb84d6fb (patch)
tree53686541fe58829c66b07436e9c0d5cfb5ab5626 /src/nvim/change.c
parentdeb4566cab91a487f2b0b0b5b4b427138f377afe (diff)
downloadrneovim-d20142a31f40140ae789e20d86094ecccb84d6fb.tar.gz
rneovim-d20142a31f40140ae789e20d86094ecccb84d6fb.tar.bz2
rneovim-d20142a31f40140ae789e20d86094ecccb84d6fb.zip
folds: decrease reliance on global 'curwin'
TODO in a future commit: - remains 2 instances of changed_lines that dont take into account buffer
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index a341b8fce1..51afb40b40 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -361,8 +361,8 @@ void changed_bytes(linenr_T lnum, colnr_T col)
/// insert/delete bytes at column
///
-/// Like changed_bytes() but also adjust extmark for "added" bytes.
-/// When "added" is negative text was deleted.
+/// Like changed_bytes() but also adjust extmark for "new" bytes.
+/// When "new" is negative text was deleted.
static void inserted_bytes(linenr_T lnum, colnr_T col, int old, int new)
{
if (curbuf_splice_pending == 0) {