aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2014-11-21 13:14:54 -0300
committerFelipe Morales <hel.sheep@gmail.com>2014-11-27 19:40:51 -0300
commit35e23984417e5dfcb88c56c4301cc60e856a97cd (patch)
tree5b1b0dd2a69833234fff27942f61db8b5c1314eb /src/nvim/screen.c
parentcfa8b4a1863fc59a6cd15022b5a69f36af65ddc9 (diff)
downloadrneovim-35e23984417e5dfcb88c56c4301cc60e856a97cd.tar.gz
rneovim-35e23984417e5dfcb88c56c4301cc60e856a97cd.tar.bz2
rneovim-35e23984417e5dfcb88c56c4301cc60e856a97cd.zip
vim-patch:7.4.467: Avoid a problem with unwanted linebreaks in block mode
vim-patch:7.4.467 Avoid a problem with unwanted linebreaks in block mode https://code.google.com/p/vim/source/detail?r=v7-4-467
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 58faac1ae7..164b8e7f7d 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -1205,8 +1205,13 @@ static void win_update(win_T *wp)
*/
if (VIsual_mode == Ctrl_V) {
colnr_T fromc, toc;
+ int save_ve_flags = ve_flags;
+
+ if (curwin->w_p_lbr)
+ ve_flags = VE_ALL;
getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc);
+ ve_flags = save_ve_flags;
++toc;
if (curwin->w_curswant == MAXCOL)
toc = MAXCOL;