summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-17 21:00:59 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-17 21:00:59 +0100
commit94b6fb78c578caab014fea4029bb534246a95f6f (patch)
tree71e7574ab6befb2ae6ff9051aea18881de75a08b /src/memline.c
parent3c71aec6966da0ebefc451ded4fbc43f426654f3 (diff)
downloadvim-git-94b6fb78c578caab014fea4029bb534246a95f6f.tar.gz
patch 8.2.0126: textprop test failsv8.2.0126
Problem: Textprop test fails. Solution: Fix sign in computation.
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c
index 2c4153946..aeb8afeaa 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -5774,7 +5774,7 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
if (!(offset >= size
+ text_end - (int)((dp->db_index[idx]) & DB_INDEX_MASK)
#ifdef FEAT_PROP_POPUP
- - (long)(textprop_total - textprop_size)
+ - (long)(textprop_total + textprop_size)
#endif
+ ffdos))
break;