]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.259
- updated to 7.1.285
[packages/vim.git] / 7.1.259
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.259
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.259
11 Problem:    Cursor is in the wrong position when 'rightleft' is set,
12             'encoding' is "utf-8" and on an illegal byte.  (Dominique Pelle)
13 Solution:   Only put the cursor in the first column when actually on a
14             double-wide character.  (Yukihiro Nakadaira)
15 Files:      src/screen.c
16
17
18 *** ../vim-7.1.258/src/screen.c Wed Feb 13 21:48:24 2008
19 --- src/screen.c        Wed Feb 20 14:06:26 2008
20 ***************
21 *** 8045,8053 ****
22         windgoto(W_WINROW(curwin) + curwin->w_wrow,
23                 W_WINCOL(curwin) + (
24   #ifdef FEAT_RIGHTLEFT
25                 curwin->w_p_rl ? ((int)W_WIDTH(curwin) - curwin->w_wcol - (
26   # ifdef FEAT_MBYTE
27 !                       has_mbyte ? (*mb_ptr2cells)(ml_get_cursor()) :
28   # endif
29                         1)) :
30   #endif
31 --- 8045,8057 ----
32         windgoto(W_WINROW(curwin) + curwin->w_wrow,
33                 W_WINCOL(curwin) + (
34   #ifdef FEAT_RIGHTLEFT
35 +               /* With 'rightleft' set and the cursor on a double-wide
36 +                * character, position it on the leftmost column. */
37                 curwin->w_p_rl ? ((int)W_WIDTH(curwin) - curwin->w_wcol - (
38   # ifdef FEAT_MBYTE
39 !                       (has_mbyte
40 !                          && (*mb_ptr2cells)(ml_get_cursor()) == 2
41 !                          && vim_isprintc(gchar_cursor())) ? 2 :
42   # endif
43                         1)) :
44   #endif
45 *** ../vim-7.1.258/src/version.c        Wed Feb 20 13:41:14 2008
46 --- src/version.c       Wed Feb 20 14:10:23 2008
47 ***************
48 *** 668,669 ****
49 --- 668,671 ----
50   {   /* Add new patch number below this line */
51 + /**/
52 +     259,
53   /**/
54
55 -- 
56 A day without sunshine is like, well, night.
57
58  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
59 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
60 \\\        download, build and distribute -- http://www.A-A-P.org        ///
61  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.058011 seconds and 3 git commands to generate.