comparison src/normal.c @ 10110:cfb38b57d407 v7.4.2326

commit https://github.com/vim/vim/commit/d5824ce1b5491df7d2eb0b66189d366fa67b4585 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 20:35:01 2016 +0200 patch 7.4.2326 Problem: Illegal memory access when Visual selection starts in invalid position. (Dominique Pelle) Solution: Correct position when needed.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Sep 2016 20:45:05 +0200
parents 72e4b7f90465
children 4647267906cc
comparison
equal deleted inserted replaced
10109:3edc6b14299b 10110:cfb38b57d407
9449 oap->block_mode = TRUE; 9449 oap->block_mode = TRUE;
9450 9450
9451 #ifdef FEAT_MBYTE 9451 #ifdef FEAT_MBYTE
9452 /* prevent from moving onto a trail byte */ 9452 /* prevent from moving onto a trail byte */
9453 if (has_mbyte) 9453 if (has_mbyte)
9454 {
9455 check_pos(curwin->w_buffer, &oap->end);
9454 mb_adjustpos(curwin->w_buffer, &oap->end); 9456 mb_adjustpos(curwin->w_buffer, &oap->end);
9457 }
9455 #endif 9458 #endif
9456 9459
9457 getvvcol(curwin, &(oap->start), &oap->start_vcol, NULL, &oap->end_vcol); 9460 getvvcol(curwin, &(oap->start), &oap->start_vcol, NULL, &oap->end_vcol);
9458 9461
9459 if (!redo_VIsual_busy) 9462 if (!redo_VIsual_busy)