summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-31 14:59:41 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-31 14:59:41 +0000
commit424bcae1fb0f69e0aef5e0cf84fd771cf34a0fb7 (patch)
tree2841d6e3702a563627a400fa10a284b73a817436 /src/getchar.c
parenteb6c2765959c91ddbb527f96f91ba5be199b8d41 (diff)
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/getchar.c')
-rw-r--r--src/getchar.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/getchar.c b/src/getchar.c
index cb8a354489..9a1132aa80 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -571,11 +571,7 @@ AppendToRedobuffLit(
// Put a string of normal characters in the redo buffer (that's
// faster).
start = s;
- while (*s >= ' '
-#ifndef EBCDIC
- && *s < DEL // EBCDIC: all chars above space are normal
-#endif
- && (len < 0 || s - str < len))
+ while (*s >= ' ' && *s < DEL && (len < 0 || s - str < len))
++s;
// Don't put '0' or '^' as last character, just in case a CTRL-D is
@@ -597,13 +593,9 @@ AppendToRedobuffLit(
if (c < ' ' || c == DEL || (*s == NUL && (c == '0' || c == '^')))
add_char_buff(&redobuff, Ctrl_V);
- // CTRL-V '0' must be inserted as CTRL-V 048 (EBCDIC: xf0)
+ // CTRL-V '0' must be inserted as CTRL-V 048
if (*s == NUL && c == '0')
-#ifdef EBCDIC
- add_buff(&redobuff, (char_u *)"xf0", 3L);
-#else
add_buff(&redobuff, (char_u *)"048", 3L);
-#endif
else
add_char_buff(&redobuff, c);
}
@@ -721,11 +713,7 @@ stuffescaped(char_u *arg, int literally)
// stuff K_SPECIAL to get the effect of a special key when "literally"
// is TRUE.
start = arg;
- while ((*arg >= ' '
-#ifndef EBCDIC
- && *arg < DEL // EBCDIC: chars above space are normal
-#endif
- )
+ while ((*arg >= ' ' && *arg < DEL)
|| (*arg == K_SPECIAL && !literally))
++arg;
if (arg > start)