aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-13 12:05:54 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:17:38 -0300
commitd225349dc67a21982308078207786d65518d2c6c (patch)
treece39854b5a27dc4f8b5e268b81fe196bb7d69469 /src/nvim/getchar.c
parente17f92eb29de90e793ec14857fc5609f53cc863d (diff)
downloadrneovim-d225349dc67a21982308078207786d65518d2c6c.tar.gz
rneovim-d225349dc67a21982308078207786d65518d2c6c.tar.bz2
rneovim-d225349dc67a21982308078207786d65518d2c6c.zip
input: Remove input_buffer_{save,restore}
The input buffer is only used for data that really came from another process and is only visible to os/input.c. Remove the input_buffer_{save,restore} functions, they are not necessary(Also can result in problems if data comes while the typeahead is saved).
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index d97c983133..dba36cd814 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1203,7 +1203,6 @@ void save_typeahead(tasave_T *tp)
readbuf1.bh_first.b_next = NULL;
tp->save_readbuf2 = readbuf2;
readbuf2.bh_first.b_next = NULL;
- tp->save_inputbuf = input_buffer_save();
}
/*
@@ -1224,7 +1223,6 @@ void restore_typeahead(tasave_T *tp)
readbuf1 = tp->save_readbuf1;
free_buff(&readbuf2);
readbuf2 = tp->save_readbuf2;
- input_buffer_restore(tp->save_inputbuf);
}
/*