mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user