aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-08-07 02:20:12 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-08-07 02:20:12 -0400
commitad5ae68acd3b0edae564064dfdc2b5b950d0b4e4 (patch)
tree4e0abd7622a6fd1a832efd9a712d2594f2f464ef /src/nvim/getchar.c
parent1fa3a7d70a99127e5dde3fdb9aa19684febb2ac7 (diff)
parent8b72ae7c7875f47b7d775038700ee17ce71a2510 (diff)
downloadrneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.tar.gz
rneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.tar.bz2
rneovim-ad5ae68acd3b0edae564064dfdc2b5b950d0b4e4.zip
Merge #814 'Remove dead #ifdefed code'
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 340b31d80a..e98bb2744c 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -543,9 +543,7 @@ AppendToRedobuffLit (
/* Put a string of normal characters in the redo buffer (that's
* faster). */
start = s;
- while (*s >= ' '
- && *s < DEL /* EBCDIC: all chars above space are normal */
- && (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
@@ -567,7 +565,7 @@ 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')
add_buff(&redobuff, (char_u *)"048", 3L);
else
@@ -4078,7 +4076,7 @@ int put_escstr(FILE *fd, char_u *strstart, int what)
*/
if (c == NL) {
if (what == 2) {
- if (fprintf(fd, IF_EB("\\\026\n", "\\" CTRL_V_STR "\n")) < 0)
+ if (fprintf(fd, "\\\026\n") < 0)
return FAIL;
} else {
if (fprintf(fd, "<NL>") < 0)