-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into tabsidebar
- Loading branch information
Showing
12 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
" These commands create the option window. | ||
" | ||
" Maintainer: The Vim Project <https://github.com/vim/vim> | ||
" Last Change: 2024 Jul 12 | ||
" Last Change: 2024 Dec 07 | ||
" Former Maintainer: Bram Moolenaar <[email protected]> | ||
|
||
" If there already is an option window, jump to that one. | ||
|
@@ -749,7 +749,7 @@ call <SID>AddOption("terse", gettext("add 's' flag in 'shortmess' (don't show se | |
call <SID>BinOptionG("terse", &terse) | ||
call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter")) | ||
call <SID>OptionG("shm", &shm) | ||
call <SID>AddOption("messagesopt", gettext("Option settings when outputting messages")) | ||
call <SID>AddOption("messagesopt", gettext("options for outputting messages")) | ||
call <SID>OptionG("mopt", &mopt) | ||
call <SID>AddOption("showcmd", gettext("show (partial) command keys in location given by 'showcmdloc'")) | ||
let &sc = s:old_sc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ | |
* 10.09.2024 Support -b and -i together, #15661 | ||
* 19.10.2024 -e did add an extra space #15899 | ||
* 11.11.2024 improve end-of-options argument parser #9285 | ||
* 07.12.2024 fix overflow with xxd --autoskip and large sparse files #16175 | ||
* | ||
* (c) 1990-1998 by Juergen Weigert ([email protected]) | ||
* | ||
|
@@ -146,7 +147,7 @@ extern void perror __P((char *)); | |
# endif | ||
#endif | ||
|
||
char version[] = "xxd 2024-11-11 by Juergen Weigert et al."; | ||
char version[] = "xxd 2024-12-07 by Juergen Weigert et al."; | ||
#ifdef WIN32 | ||
char osver[] = " (Win32)"; | ||
#else | ||
|
@@ -515,7 +516,7 @@ huntype( | |
} | ||
|
||
/* | ||
* Print line l. If nz is false, xxdline regards the line a line of | ||
* Print line l. If nz is false, xxdline regards the line as a line of | ||
* zeroes. If there are three or more consecutive lines of zeroes, | ||
* they are replaced by a single '*' character. | ||
* | ||
|
@@ -530,7 +531,7 @@ huntype( | |
xxdline(FILE *fp, char *l, int nz) | ||
{ | ||
static char z[LLEN+1]; | ||
static int zero_seen = 0; | ||
static signed char zero_seen = 0; | ||
|
||
if (!nz && zero_seen == 1) | ||
strcpy(z, l); | ||
|
@@ -551,6 +552,11 @@ xxdline(FILE *fp, char *l, int nz) | |
if (nz) | ||
zero_seen = 0; | ||
} | ||
|
||
/* If zero_seen > 3, then its exact value doesn't matter, so long as it | ||
* remains >3 and incrementing it will not cause overflow. */ | ||
if (zero_seen >= 0x7F) | ||
zero_seen = 4; | ||
} | ||
|
||
/* This is an EBCDIC to ASCII conversion table */ | ||
|