blob: 4a650a0fbe2aaadd2dd016fc762d9ec5fd364901 (
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
|
To: vim-dev@vim.org
Subject: Patch 6.0.024
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 6.0.024
Problem: Using "CTRL-V u 9900" in Insert mode may cause a crash. (Noah
Levitt)
Solution: Don't insert a NUL byte in the text, use a newline.
Files: src/misc1.c
*** ../vim60.23/src/misc1.c Wed Sep 26 16:19:00 2001
--- src/misc1.c Wed Oct 24 13:15:20 2001
***************
*** 1536,1541 ****
--- 1536,1547 ----
int n;
n = (*mb_char2bytes)(c, buf);
+
+ /* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.
+ * Happens for CTRL-Vu9900. */
+ if (buf[0] == 0)
+ buf[0] = '\n';
+
ins_char_bytes(buf, n);
}
*** ../vim60.23/src/version.c Tue Oct 23 20:57:50 2001
--- src/version.c Wed Oct 24 13:19:45 2001
***************
*** 608,609 ****
--- 608,611 ----
{ /* Add new patch number below this line */
+ /**/
+ 24,
/**/
--
Women are probably the main cause of free software starvation.
/// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
|