summaryrefslogtreecommitdiffstats
path: root/patches/source/vim/patches/7.4.303
blob: 8e49c6948cd98d0fc3c31ed0f73cac0587e870a1 (plain) (blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
To: vim_dev@googlegroups.com
Subject: Patch 7.4.303
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.4.303
Problem:    When using double-width characters the text displayed on the
	    command line is sometimes truncated.
Solution:   Reset the string lenght. (Nobuhiro Takasaki)
Files:	    src/screen.c


*** ../vim-7.4.302/src/screen.c	2014-05-22 15:51:00.734399594 +0200
--- src/screen.c	2014-05-22 16:02:24.294385701 +0200
***************
*** 6916,6930 ****
   * a NUL.
   */
      void
! screen_puts_len(text, len, row, col, attr)
      char_u	*text;
!     int		len;
      int		row;
      int		col;
      int		attr;
  {
      unsigned	off;
      char_u	*ptr = text;
      int		c;
  #ifdef FEAT_MBYTE
      unsigned	max_off;
--- 6916,6931 ----
   * a NUL.
   */
      void
! screen_puts_len(text, textlen, row, col, attr)
      char_u	*text;
!     int		textlen;
      int		row;
      int		col;
      int		attr;
  {
      unsigned	off;
      char_u	*ptr = text;
+     int		len = textlen;
      int		c;
  #ifdef FEAT_MBYTE
      unsigned	max_off;
***************
*** 7169,7175 ****
--- 7170,7180 ----
  	    col += mbyte_cells;
  	    ptr += mbyte_blen;
  	    if (clear_next_cell)
+ 	    {
+ 		/* This only happens at the end, display one space next. */
  		ptr = (char_u *)" ";
+ 		len = -1;
+ 	    }
  	}
  	else
  #endif
*** ../vim-7.4.302/src/version.c	2014-05-22 15:51:00.738399594 +0200
--- src/version.c	2014-05-22 15:58:15.050390766 +0200
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     303,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
     your PDA and download the information to your laptop

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///