]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.082
- new
[packages/vim.git] / 7.2.082
CommitLineData
16604d53
ER
1To: vim-dev@vim.org
2Subject: Patch 7.2.082
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.082
11Problem: When 'ff' is "mac" then "ga" on a ^J shows 0x0d instead of 0x0a.
12 (Andy Wokula)
13Solution: Use NL for this situation. (Lech Lorens)
14Files: src/ex_cmds.c
15
16
17*** ../vim-7.2.081/src/ex_cmds.c Fri Nov 28 21:26:50 2008
18--- src/ex_cmds.c Tue Jan 13 16:51:32 2009
19***************
20*** 49,54 ****
21--- 49,55 ----
22 exarg_T *eap;
23 {
24 int c;
25+ int cval;
26 char buf1[20];
27 char buf2[20];
28 char_u buf3[7];
29***************
30*** 75,80 ****
31--- 76,85 ----
32 {
33 if (c == NL) /* NUL is stored as NL */
34 c = NUL;
35+ if (c == CAR && get_fileformat(curbuf) == EOL_MAC)
36+ cval = NL; /* NL is stored as CR */
37+ else
38+ cval = c;
39 if (vim_isprintc_strict(c) && (c < ' '
40 #ifndef EBCDIC
41 || c > '~'
42***************
43*** 94,100 ****
44 buf2[0] = NUL;
45 vim_snprintf((char *)IObuff, IOSIZE,
46 _("<%s>%s%s %d, Hex %02x, Octal %03o"),
47! transchar(c), buf1, buf2, c, c, c);
48 #ifdef FEAT_MBYTE
49 if (enc_utf8)
50 c = cc[ci++];
51--- 99,105 ----
52 buf2[0] = NUL;
53 vim_snprintf((char *)IObuff, IOSIZE,
54 _("<%s>%s%s %d, Hex %02x, Octal %03o"),
55! transchar(c), buf1, buf2, cval, cval, cval);
56 #ifdef FEAT_MBYTE
57 if (enc_utf8)
58 c = cc[ci++];
59*** ../vim-7.2.081/src/version.c Tue Jan 13 16:37:31 2009
60--- src/version.c Tue Jan 13 16:53:39 2009
61***************
62*** 678,679 ****
63--- 678,681 ----
64 { /* Add new patch number below this line */
65+ /**/
66+ 82,
67 /**/
68
69--
70The budget process was invented by an alien race of sadistic beings who
71resemble large cats.
72 (Scott Adams - The Dilbert principle)
73
74 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
75/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76\\\ download, build and distribute -- http://www.A-A-P.org ///
77 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.172087 seconds and 4 git commands to generate.