aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--src/core-commands.c2
-rw-r--r--src/search.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index 5692c48..fd4f0db 100644
--- a/TODO
+++ b/TODO
@@ -146,7 +146,6 @@ Known Bugs:
files around, it does not produce a core dump.
Features:
- * Perhaps ^S should return a positive number after <FK>.
* Auto-indention could be implemented via context-sensitive
immediate editing commands similar to tab-expansion.
Avoids having to make LF a magic character in insertion
diff --git a/src/core-commands.c b/src/core-commands.c
index 52b577d..89f86da 100644
--- a/src/core-commands.c
+++ b/src/core-commands.c
@@ -1990,6 +1990,8 @@ teco_state_control_last_range(teco_machine_main_t *ctx, GError **error)
*
* A common idiom \(lq^SC\(rq can be used for jumping to the
* beginning of the matched pattern or inserted string.
+ * Since the result is always negative, you can use \(lq^SR\(rq
+ * to skip the matched pattern after \fBFK\fP.
*/
static void
teco_state_control_last_length(teco_machine_main_t *ctx, GError **error)
diff --git a/src/search.c b/src/search.c
index e05a6b9..ba5203c 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1113,7 +1113,7 @@ teco_state_search_kill_done(teco_machine_main_t *ctx, const teco_string_t *str,
* from,to:FK[pattern]$ -> Success|Failure
*
* \fBFK\fP searches for <pattern> just like the regular search
- * command (\fBS\fP) but when found deletes all text from dot
+ * command (\fBS\fP) but when found, deletes all text from dot
* up to but not including the found text instance.
* When searching backwards the characters beginning after
* the occurrence of <pattern> up to dot are deleted.