0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.467

This commit is contained in:
Bram Moolenaar
2014-10-09 13:24:43 +02:00
parent 56095e1ceb
commit 404406ad6b
5 changed files with 33 additions and 2 deletions

View File

@@ -1380,6 +1380,12 @@ do_pending_operator(cap, old_col, gui_yank)
pos_T old_cursor; pos_T old_cursor;
int empty_region_error; int empty_region_error;
int restart_edit_save; int restart_edit_save;
#ifdef FEAT_LINEBREAK
int lbr_saved = curwin->w_p_lbr;
curwin->w_p_lbr = FALSE; /* avoid a problem with unwanted linebreaks in
* block mode */
#endif
/* The visual area is remembered for redo */ /* The visual area is remembered for redo */
static int redo_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */ static int redo_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */
@@ -2136,6 +2142,9 @@ do_pending_operator(cap, old_col, gui_yank)
oap->block_mode = FALSE; oap->block_mode = FALSE;
clearop(oap); clearop(oap);
} }
#ifdef FEAT_LINEBREAK
curwin->w_p_lbr = lbr_saved;
#endif
} }
/* /*

View File

@@ -1584,9 +1584,17 @@ win_update(wp)
*/ */
if (VIsual_mode == Ctrl_V) if (VIsual_mode == Ctrl_V)
{ {
colnr_T fromc, toc; colnr_T fromc, toc;
#if defined(FEAT_VIRTUALEDIT) && defined(FEAT_LINEBREAK)
int save_ve_flags = ve_flags;
if (curwin->w_p_lbr)
ve_flags = VE_ALL;
#endif
getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc); getvcols(wp, &VIsual, &curwin->w_cursor, &fromc, &toc);
#if defined(FEAT_VIRTUALEDIT) && defined(FEAT_LINEBREAK)
ve_flags = save_ve_flags;
#endif
++toc; ++toc;
if (curwin->w_curswant == MAXCOL) if (curwin->w_curswant == MAXCOL)
toc = MAXCOL; toc = MAXCOL;

View File

@@ -2,7 +2,7 @@ Test for linebreak and list option (non-utf8)
STARTTEST STARTTEST
:so small.vim :so small.vim
:if !exists("+linebreak") || !exists("+conceal") | e! test.ok | w! test.out | qa! | endif :if !exists("+linebreak") || !has("conceal") | e! test.ok | w! test.out | qa! | endif
:10new|:vsp|:vert resize 20 :10new|:vsp|:vert resize 20
:put =\"\tabcdef hijklmn\tpqrstuvwxyz_1060ABCDEFGHIJKLMNOP \" :put =\"\tabcdef hijklmn\tpqrstuvwxyz_1060ABCDEFGHIJKLMNOP \"
:norm! zt :norm! zt
@@ -56,6 +56,14 @@ STARTTEST
:syn match All /.*/ contains=ConcealVar :syn match All /.*/ contains=ConcealVar
:let line=ScreenChar(winwidth(0)) :let line=ScreenChar(winwidth(0))
:call DoRecordScreen() :call DoRecordScreen()
:set cpo&vim linebreak
:let g:test ="Test 6: set linebreak with visual block mode"
:let line="REMOVE: this not"
:$put =line
:let line="REMOVE: aaaaaaaaaaaaa"
:$put =line
:1/^REMOVE:
0jf x:$put
:%w! test.out :%w! test.out
:qa! :qa!
ENDTEST ENDTEST

View File

@@ -32,3 +32,7 @@ Sabbbbbb bla
~ ~
~ ~
~ ~
this not
aaaaaaaaaaaaa
REMOVE:
REMOVE:

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
467,
/**/ /**/
466, 466,
/**/ /**/