Hi,

2014/10/9 Thu 20:24:12 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.467
> Problem:    'linebreak' does not work well together with Visual mode.
> Solution:   Disable 'linebreak' while applying an operator.  Fix the test.
>           (Christian Brabandt)
> Files:            src/normal.c, src/screen.c, src/testdir/test_listlbr.in,
>           src/testdir/test_listlbr.ok

After this patch, MSVC fails to compile.
Please check this log:
https://ci.appveyor.com/project/k-takata/vim-ci/build/51#L66

The errors are caused by this hunk: 

> *** ../vim-7.4.466/src/normal.c       2014-08-30 13:32:03.406623315 +0200
> --- src/normal.c      2014-10-09 13:17:59.264886376 +0200
> ***************
> *** 1380,1385 ****
> --- 1380,1391 ----
>       pos_T   old_cursor;
>       int             empty_region_error;
>       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 */
>       static int          redo_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */

The line "curwin->w_p_lbr = FALSE;" is inserted before variable declarations.
C89 doesn't allow this.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui