completion: when the cursor is not after a word fragment, say so

Instead of being entirely silent when ^] is hit after whitespace
or punctuation, report what is lacking -- similar to M-] saying
"Not a bracket" when the cursor is not sitting on a bracket.
This makes the ^] keystroke more discoverable.
This commit is contained in:
Benno Schulenberg 2018-07-13 13:37:33 +02:00
parent c46696d40c
commit 05592a84ec

View File

@ -3600,6 +3600,7 @@ void complete_a_word(void)
/* If there is no word fragment before the cursor, do nothing. */
if (start_of_shard == openfile->current_x) {
statusbar(_("No word fragment"));
pletion_line = NULL;
return;
}