aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-12 18:31:59 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-12 21:22:06 -0500
commit5d6ecfa3c7447009da75842c611ea1b9f1db83e7 (patch)
treebe2a450a71101292ba5608fb2846f8340ad1f5f4 /src/nvim/fold.c
parent93c18867a0e79bf71bffa9f8ce533f224d759ee5 (diff)
downloadrneovim-5d6ecfa3c7447009da75842c611ea1b9f1db83e7.tar.gz
rneovim-5d6ecfa3c7447009da75842c611ea1b9f1db83e7.tar.bz2
rneovim-5d6ecfa3c7447009da75842c611ea1b9f1db83e7.zip
vim-patch:8.1.0805: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1. https://github.com/vim/vim/commit/135059724f140ceac889c9f8136bd1bf5c41d49d
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 24a73a5b9f..5e28ca6538 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -1037,11 +1037,11 @@ void foldAdjustVisual(void)
if (hasFolding(end->lnum, NULL, &end->lnum)) {
ptr = ml_get(end->lnum);
end->col = (colnr_T)STRLEN(ptr);
- if (end->col > 0 && *p_sel == 'o')
- --end->col;
- /* prevent cursor from moving on the trail byte */
- if (has_mbyte)
- mb_adjust_cursor();
+ if (end->col > 0 && *p_sel == 'o') {
+ end->col--;
+ }
+ // prevent cursor from moving on the trail byte
+ mb_adjust_cursor();
}
}