[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] completion: when the cursor is not after a word fra
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH] completion: when the cursor is not after a word fragment, say so |
Date: |
Fri, 13 Jul 2018 13:49:01 +0200 |
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.
---
src/text.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/text.c b/src/text.c
index 8ed330d3..b09d6d90 100644
--- a/src/text.c
+++ b/src/text.c
@@ -3599,6 +3599,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;
}
--
2.17.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] [PATCH] completion: when the cursor is not after a word fragment, say so,
Benno Schulenberg <=