summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-21 21:05:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-21 21:05:35 -0700
commitb0467383501c9d99d36b1882edf6d2997105cdee (patch)
tree323620dd4f5aa6de0fda914c5b62e2d4f693f63a /txr.1
parent515b0cdcc0b4c61c2636444b08d3868e902d380d (diff)
downloadtxr-b0467383501c9d99d36b1882edf6d2997105cdee.tar.gz
txr-b0467383501c9d99d36b1882edf6d2997105cdee.tar.bz2
txr-b0467383501c9d99d36b1882edf6d2997105cdee.zip
linenoise: multi-line behavior for del to bol/eol.
* linenoise/linenoise.c (edit_delete_prev_all): In multi-line mode, delete only to beginning of physical line, not the entire logical line. Also, detect noop cases and don't do record undo or produce any effect. (edit_delete_to_eol): New function. (edit): Use edit_delete_to_eol function for Ctrl-K instead of inline code. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.19
1 files changed, 6 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 70a48a4b..673c1d5e 100644
--- a/txr.1
+++ b/txr.1
@@ -33624,11 +33624,17 @@ The Ctrl-U ("undo typing") command is a "super backspace" operation: it deletes
all characters to the left of the cursor position. The cursor is moved to
the leftmost position.
+In multi-line mode, Ctrl-U deletes only to the beginning of the current
+physical line, not all the way to the first position of the buffer.
+
.NP* Delete to End of Line
The Ctrl-K ("kill") command deletes the character under the cursor position
and all subsequent characters. The cursor position doesn't change.
+In multi-line mode, Ctrl-K deletes only until the end of the current
+physical line, not the entire buffer.
+
.NP* Verbatim Character Insert
The Ctrl-V ("verbatim") command places the listener's input editor into
@@ -33984,9 +33990,6 @@ breaks rather than being rendered as
To insert a line break character, use the sequence: Ctrl-V, Ctrl-M.
Or, equivalently: Ctrl-V, Enter.
-Note that the Ctrl-K and Ctrl-U commands regard the entire input to be one
-logical line, ignoring the line breaks.
-
Because carriage returns are not line terminators in text files,
lines which contain embedded carriage returns are correctly saved
into and retrieved from the persistent history file.