summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-19 20:34:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-19 20:34:48 -0700
commit1f8bf765519f3245fd646046f593ffd8ac215061 (patch)
tree6a39e23bc9f4482aa155ecaed9f66b5da379534d /utf8.c
parente0035c263127c0a8eb864d64d69a17179b207bdd (diff)
downloadtxr-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 'utf8.c')
0 files changed, 0 insertions, 0 deletions