mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.2-082
This commit is contained in:
@@ -49,6 +49,7 @@ do_ascii(eap)
|
|||||||
exarg_T *eap;
|
exarg_T *eap;
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
int cval;
|
||||||
char buf1[20];
|
char buf1[20];
|
||||||
char buf2[20];
|
char buf2[20];
|
||||||
char_u buf3[7];
|
char_u buf3[7];
|
||||||
@@ -75,6 +76,10 @@ do_ascii(eap)
|
|||||||
{
|
{
|
||||||
if (c == NL) /* NUL is stored as NL */
|
if (c == NL) /* NUL is stored as NL */
|
||||||
c = NUL;
|
c = NUL;
|
||||||
|
if (c == CAR && get_fileformat(curbuf) == EOL_MAC)
|
||||||
|
cval = NL; /* NL is stored as CR */
|
||||||
|
else
|
||||||
|
cval = c;
|
||||||
if (vim_isprintc_strict(c) && (c < ' '
|
if (vim_isprintc_strict(c) && (c < ' '
|
||||||
#ifndef EBCDIC
|
#ifndef EBCDIC
|
||||||
|| c > '~'
|
|| c > '~'
|
||||||
@@ -94,7 +99,7 @@ do_ascii(eap)
|
|||||||
buf2[0] = NUL;
|
buf2[0] = NUL;
|
||||||
vim_snprintf((char *)IObuff, IOSIZE,
|
vim_snprintf((char *)IObuff, IOSIZE,
|
||||||
_("<%s>%s%s %d, Hex %02x, Octal %03o"),
|
_("<%s>%s%s %d, Hex %02x, Octal %03o"),
|
||||||
transchar(c), buf1, buf2, c, c, c);
|
transchar(c), buf1, buf2, cval, cval, cval);
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
if (enc_utf8)
|
if (enc_utf8)
|
||||||
c = cc[ci++];
|
c = cc[ci++];
|
||||||
|
@@ -676,6 +676,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
82,
|
||||||
/**/
|
/**/
|
||||||
81,
|
81,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user