aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-05-31 20:36:16 +0200
committerbfredl <bjorn.linse@gmail.com>2024-06-01 10:52:43 +0200
commit6d6974eae685feeccac027287b4dee58730a7464 (patch)
tree1c1b0efb11da11a3f6121465172410941d999a56 /src/nvim/memory.c
parent1d091e52f09c8167eeaa03a6e5c44070ea198c6b (diff)
downloadrneovim-6d6974eae685feeccac027287b4dee58730a7464.tar.gz
rneovim-6d6974eae685feeccac027287b4dee58730a7464.tar.bz2
rneovim-6d6974eae685feeccac027287b4dee58730a7464.zip
refactor(input): don't use a ring for input
Since paste data is handled via a separate channel, the data processed via `input_buffer` is typically just explicit keys as typed in by the user. Therefore it should be fine to use `memmove()` to always put the remaining data in front when refilling the buffer.
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index 789535e270..6a60ca927e 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -882,7 +882,6 @@ void free_all_mem(void)
decor_free_all_mem();
drawline_free_all_mem();
- input_free_all_mem();
if (ui_client_channel_id) {
ui_client_free_all_mem();