diff options
author | Felipe Morales <hel.sheep@gmail.com> | 2014-11-21 13:14:54 -0300 |
---|---|---|
committer | Felipe Morales <hel.sheep@gmail.com> | 2014-11-27 19:40:51 -0300 |
commit | 35e23984417e5dfcb88c56c4301cc60e856a97cd (patch) | |
tree | 5b1b0dd2a69833234fff27942f61db8b5c1314eb /src/nvim/normal.c | |
parent | cfa8b4a1863fc59a6cd15022b5a69f36af65ddc9 (diff) | |
download | rneovim-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/normal.c')
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index a2bdc05831..9ec97bd320 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1099,6 +1099,10 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank) pos_T old_cursor; bool empty_region_error; int restart_edit_save; + int lbr_saved = curwin->w_p_lbr; + + curwin->w_p_lbr = false; /* avoid a problem with unwanted linebreaks in + * block mode */ /* The visual area is remembered for redo */ static int redo_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */ @@ -1711,6 +1715,7 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank) oap->block_mode = false; clearop(oap); } + curwin->w_p_lbr = lbr_saved; } /* |