diff options
author | Kaz Kyheku <kaz@kylheku.com> | 2020-03-19 20:43:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-03-19 20:43:20 -0700 |
commit | 7c40d5d6ef6832baed4a5ccd0a5d4235ed4f5ee3 (patch) | |
tree | 3b9c06272f3795f6003ff1af1324ba9333213657 /txr.1 | |
parent | 0b11f11008362eafbce5b5211fc86766342f514a (diff) | |
download | txr-7c40d5d6ef6832baed4a5ccd0a5d4235ed4f5ee3.tar.gz txr-7c40d5d6ef6832baed4a5ccd0a5d4235ed4f5ee3.tar.bz2 txr-7c40d5d6ef6832baed4a5ccd0a5d4235ed4f5ee3.zip |
linenoise: major delete ops now yank to clipboard.
* linenoise/linenoise.c (yank): New static function, made out
of yank_sel.
(yank_by_ptr): New static function.
(yank_sel): Now wrapper for yank.
(edit_delete): Call yank_sel here if selmode is on, rather
than having the caller do it. This fixes a bug: the Ctrl-D
handler was doing this, but not the Del key handler.
(edit_delete, edit_delete_prev_all, edit_delete_to_eol,
edit_delete_line): All these operations
now yank the deleted text into the clipboard.
(edit_delete_prev_word): Likewise, and bugfix here: undo was
not being recorded for the clipboard deletion, only for the
word deletion. The semantics here is that if a selection is in
effect, only the selection goes into the clipboard, not the
word.now the deleted selection goes into the clipbo
(edit): Ctrl-D handler now doesn't call yank_sel, relying on
edit_delete to do it.
* txr.1: Documentation updated.
Diffstat (limited to 'txr.1')
0 files changed, 0 insertions, 0 deletions