|
From: | Sumedh Pendurkar |
Subject: | Re: [Nano-devel] adding a word-completion feature to nano |
Date: | Tue, 18 Oct 2016 02:09:25 +0530 |
I don't like it that auto_complete_void() reads the input
stream. Better use a global variable to store the state.
Somewhere in do_input(), after 'if (have_shortcut) {', do:
if (s->scfunc != complete_a_word)
new_completion = TRUE;
(Yes, rename auto_complete_void() to complete_a_word().)
So every ^] keystroke enters /and/ exits from this function
[Prev in Thread] | Current Thread | [Next in Thread] |