aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-08-15 22:46:48 +0300
committerZviRackover <zvirack@gmail.com>2018-08-16 06:03:49 +0300
commit30392b635689a5f25421c17ead79e521863c8b57 (patch)
treedcfc160cd10b09de6a7ededd4d241196b24ac122 /src/nvim/diff.c
parent2bddc4ca54e31a14b7e9799beda134217ae867e7 (diff)
downloadrneovim-30392b635689a5f25421c17ead79e521863c8b57.tar.gz
rneovim-30392b635689a5f25421c17ead79e521863c8b57.tar.bz2
rneovim-30392b635689a5f25421c17ead79e521863c8b57.zip
Remove has_mbyte from lines near changes in parent commit
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index cd0aa40ecd..4bfe67c9d3 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -1962,12 +1962,10 @@ bool diff_find_change(win_T *wp, linenr_T lnum, int *startp, int *endp)
}
}
- if (has_mbyte) {
- // Move back to first byte of character in both lines (may
- // have "nn^" in line_org and "n^ in line_new).
- si_org -= utf_head_off(line_org, line_org + si_org);
- si_new -= utf_head_off(line_new, line_new + si_new);
- }
+ // Move back to first byte of character in both lines (may
+ // have "nn^" in line_org and "n^ in line_new).
+ si_org -= utf_head_off(line_org, line_org + si_org);
+ si_new -= utf_head_off(line_new, line_new + si_new);
if (*startp > si_org) {
*startp = si_org;