diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-19 20:34:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-19 20:34:48 -0700 |
commit | 1f8bf765519f3245fd646046f593ffd8ac215061 (patch) | |
tree | 6a39e23bc9f4482aa155ecaed9f66b5da379534d /tests/002/proc/27685 | |
parent | e0035c263127c0a8eb864d64d69a17179b207bdd (diff) | |
download | txr-1f8bf765519f3245fd646046f593ffd8ac215061.tar.gz txr-1f8bf765519f3245fd646046f593ffd8ac215061.tar.bz2 txr-1f8bf765519f3245fd646046f593ffd8ac215061.zip |
linenoise: support inclusive selection.
* linenoise/linenoise.c (struct lino_state): New mode flag,
selinclusive.
(lino_set_selinclusive, lino_get_selinclusive): New functions.
(sync_data_to_buf): Adjust rightmost endpoint when
selection is reversed and inclusive mode is in effect,
so that the included character will be visually highlighted.
(yank_sel, delete_sel): Adjust endpoint of selection
if in in inclusive mode.
* linenoise/linenoise.h (lino_set_selinclusive,
lino_get_selinclusive): Declared.
Diffstat (limited to 'tests/002/proc/27685')
0 files changed, 0 insertions, 0 deletions