diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-31 14:59:41 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-31 14:59:41 +0000 |
commit | 424bcae1fb0f69e0aef5e0cf84fd771cf34a0fb7 (patch) | |
tree | 2841d6e3702a563627a400fa10a284b73a817436 /src/viminfo.c | |
parent | eb6c2765959c91ddbb527f96f91ba5be199b8d41 (diff) | |
download | vim-git-424bcae1fb0f69e0aef5e0cf84fd771cf34a0fb7.tar.gz |
patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
Diffstat (limited to 'src/viminfo.c')
-rw-r--r-- | src/viminfo.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/viminfo.c b/src/viminfo.c index 3620b58de..cc28a1209 100644 --- a/src/viminfo.c +++ b/src/viminfo.c @@ -162,7 +162,7 @@ viminfo_writestring(FILE *fd, char_u *p) // the string (e.g., variable name). Add something to the length for the // '<', NL and trailing NUL. if (len > LSIZE / 2) - fprintf(fd, IF_EB("\026%d\n<", CTRL_V_STR "%d\n<"), len + 3); + fprintf(fd, "\026%d\n<", len + 3); while ((c = *p++) != NUL) { @@ -2485,11 +2485,9 @@ read_viminfo_filemark(vir_T *virp, int force) // We only get here if line[0] == '\'' or '-'. // Illegal mark names are ignored (for future expansion). str = virp->vir_line + 1; - if ( -#ifndef EBCDIC - *str <= 127 && -#endif - ((*virp->vir_line == '\'' && (VIM_ISDIGIT(*str) || isupper(*str))) + if (*str <= 127 + && ((*virp->vir_line == '\'' + && (VIM_ISDIGIT(*str) || isupper(*str))) || (*virp->vir_line == '-' && *str == '\''))) { if (*str == '\'') |