summaryrefslogtreecommitdiffstats
path: root/gvim/vim-7.2/7.2.341
blob: 67d5e81dfc698ae14a5199ba5f4ca4b5920bd980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
To: vim-dev@vim.org
Subject: Patch 7.2.341
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.2.341
Problem:    Popup menu wraps to next line when double-wide character doesn't
	    fit. (Jiang Ma)
Solution:   Display a ">" instead. (Dominique Pelle)
Files:	    src/screen.c


*** ../vim-7.2.340/src/screen.c	2009-11-25 13:03:29.000000000 +0100
--- src/screen.c	2010-01-19 17:34:21.000000000 +0100
***************
*** 6434,6439 ****
--- 6434,6446 ----
  		else
  		    prev_c = u8c;
  # endif
+ 		if (col + mbyte_cells > screen_Columns)
+ 		{
+ 		    /* Only 1 cell left, but character requires 2 cells:
+ 		     * display a '>' in the last column to avoid wrapping. */
+ 		    c = '>';
+ 		    mbyte_cells = 1;
+ 		}
  	    }
  	}
  #endif
***************
*** 9210,9216 ****
      int	    force;
  {
      /*
!      * Don't delete it right now, when not redrawing or insided a mapping.
       */
      if (!redrawing() || (!force && char_avail() && !KeyTyped))
  	redraw_cmdline = TRUE;		/* delete mode later */
--- 9217,9223 ----
      int	    force;
  {
      /*
!      * Don't delete it right now, when not redrawing or inside a mapping.
       */
      if (!redrawing() || (!force && char_avail() && !KeyTyped))
  	redraw_cmdline = TRUE;		/* delete mode later */
*** ../vim-7.2.340/src/version.c	2010-01-19 17:24:20.000000000 +0100
--- src/version.c	2010-01-19 17:39:56.000000000 +0100
***************
*** 683,684 ****
--- 683,686 ----
  {   /* Add new patch number below this line */
+ /**/
+     341,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
124. You begin conversations with, "Who is your internet service provider?"

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///