summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-03 15:48:12 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-03 15:48:12 +0200
commit5e80de3f3e572805fe734b66bc42c13303ad9bdb (patch)
tree038a05f77d6493f69928517044d021f37ec19112 /src/ui.c
parent00ccf54630dc68a9b8aedb92b268f3b697081f68 (diff)
downloadvim-git-5e80de3f3e572805fe734b66bc42c13303ad9bdb.tar.gz
patch 8.0.1048: no test for what 8.0.1020 fixesv8.0.1048
Problem: No test for what 8.0.1020 fixes. Solution: Add test_feedinput(). Add a test. (Ozaki Kiichi, closes #2046)
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ui.c b/src/ui.c
index ddae37266..d8deb6a8d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1651,11 +1651,6 @@ set_input_buf(char_u *p)
}
}
-#if defined(FEAT_GUI) \
- || defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE) \
- || defined(FEAT_XCLIPBOARD) || defined(VMS) \
- || defined(FEAT_CLIENTSERVER) \
- || defined(PROTO)
/*
* Add the given bytes to the input buffer
* Special keys start with CSI. A real CSI must have been translated to
@@ -1676,15 +1671,7 @@ add_to_input_buf(char_u *s, int len)
while (len--)
inbuf[inbufcount++] = *s++;
}
-#endif
-#if ((defined(FEAT_XIM) || defined(FEAT_DND)) && defined(FEAT_GUI_GTK)) \
- || defined(FEAT_GUI_MSWIN) \
- || defined(FEAT_GUI_MAC) \
- || (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
- || (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
- || defined(FEAT_MENU))) \
- || defined(PROTO)
/*
* Add "str[len]" to the input buffer while escaping CSI bytes.
*/
@@ -1706,7 +1693,6 @@ add_to_input_buf_csi(char_u *str, int len)
}
}
}
-#endif
#if defined(FEAT_HANGULIN) || defined(PROTO)
void
@@ -1744,7 +1730,6 @@ trash_input_buf(void)
/*
* Read as much data from the input buffer as possible up to maxlen, and store
* it in buf.
- * Note: this function used to be Read() in unix.c
*/
int
read_from_input_buf(char_u *buf, long maxlen)