diff options
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r-- | linenoise/linenoise.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index 782fdfde..7dd29aa5 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -1870,6 +1870,15 @@ static int edit(lino_t *l, const char *prompt) l->dsel = l->dend = l->dpos; l->need_refresh = 1; break; + case CTL('^'): + if (l->selmode) + { + size_t tmp = l->dsel; + l->dsel = l->dend; + l->dend = l->dpos = tmp; + l->need_refresh = 1; + } + break; case CTL('Y'): yank_sel(l); clear_sel(l); |