summaryrefslogtreecommitdiffstats
path: root/linenoise
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-21 06:22:58 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-21 06:22:58 -0800
commit91477b902ec2c36d893e72e99916469f99558ac9 (patch)
treec4cb2b1e4e49ebbc1767041c771e22e0b9db3afe /linenoise
parent386545bab0787be5ca4b24fb0f64e89ee49eb908 (diff)
downloadtxr-91477b902ec2c36d893e72e99916469f99558ac9.tar.gz
txr-91477b902ec2c36d893e72e99916469f99558ac9.tar.bz2
txr-91477b902ec2c36d893e72e99916469f99558ac9.zip
linenoise: Ctrl-X Ctrl-P missing from cheatsheet.
* linenoise/linenoise.c (show_help): Rearrange contents. ^X+Tab moves from page 3 to page 2, to a spot where there is just enough room. That gives us room to place ^X^P on page 3.
Diffstat (limited to 'linenoise')
-rw-r--r--linenoise/linenoise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index 4caeb35d..cb4b9f41 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -807,13 +807,13 @@ static void show_help(lino_t *l)
L"^F forward ^E end buf/ln ^D del right ^K del ln end Tab complete\r"
L"^5 parmatch ^] parmatch ^W del word left ^V next ch verbatim [p. 1/3]",
- L"^L refresh ^P hist prev ^S select ^Q paste ^J multi ln toggle\r"
- L"^C cancel ^N hist next ^^ sel endpt swp ^D sel cut\r"
+ L"^L refresh ^P hist prev ^S select ^Q paste ^J multi ln toggle\r"
+ L"^C cancel ^N hist next ^^ sel endpt swp ^D sel cut ^X+Tab substr complete\r"
L"^Z suspend ^O undo ^Y yank ^W sel + word cut [p. 2/3]",
L"^X^V verbatim ins mode ^X^A ins prev ln atom ^X^E extrn editor\r"
- L"^X^R ins prev ln ^X+Enter submit; keep hist pos ^X^Q exch clip/sel\r"
- L"^X^W ins prev ln word ^X+Tab substring complete [p. 3/3]"
+ L"^X^R ins prev ln ^X^P ins prev eval output ^X^Q exch clip/sel\r"
+ L"^X^W ins prev ln word ^X+Enter submit; keep hist pos [p. 3/3]"
};
lc->mlmode = 1;
lc->prompt = L"";