diff options
| author | Bram Moolenaar <Bram@vim.org> | 2016-09-04 20:35:01 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2016-09-04 20:35:01 +0200 |
| commit | d5824ce1b5491df7d2eb0b66189d366fa67b4585 (patch) | |
| tree | c714124ce2cbbb424824917b9058da7cdf82cb9c /src/normal.c | |
| parent | 30180b8dad5c1478e7920e56a71352cb318fadb0 (diff) | |
| download | vim-git-d5824ce1b5491df7d2eb0b66189d366fa67b4585.tar.gz | |
patch 7.4.2326v7.4.2326
Problem: Illegal memory access when Visual selection starts in invalid
position. (Dominique Pelle)
Solution: Correct position when needed.
Diffstat (limited to 'src/normal.c')
| -rw-r--r-- | src/normal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index 0f9b23051..edaa740e4 100644 --- a/src/normal.c +++ b/src/normal.c @@ -9451,7 +9451,10 @@ get_op_vcol( #ifdef FEAT_MBYTE /* prevent from moving onto a trail byte */ if (has_mbyte) + { + check_pos(curwin->w_buffer, &oap->end); mb_adjustpos(curwin->w_buffer, &oap->end); + } #endif getvvcol(curwin, &(oap->start), &oap->start_vcol, NULL, &oap->end_vcol); |
