* [9front] rio ctrlb patch
@ 2018-09-03 19:19 Sean Hinchee
0 siblings, 0 replies; only message in thread
From: Sean Hinchee @ 2018-09-03 19:19 UTC (permalink / raw)
To: 9front
Here's a patch courtesy of mora/noise that's been on my vps for awhile
which changes the ctrl+b functionality to go to the end of the
bottom-most line rather than just to the prompt.
That is, if text is already present on the line you don't have to press
ctrl+b ctrl+e and functionality with no text entered is the same as the
existing ctrl+b functionality.
diff -r eecec6d3b341 sys/src/cmd/rio/wind.c
--- a/sys/src/cmd/rio/wind.c Mon Sep 03 20:54:26 2018 +0200
+++ b/sys/src/cmd/rio/wind.c Mon Sep 03 14:09:42 2018 -0500
@@ -675,6 +675,10 @@
return;
case Kstx: /* ^B: output point */
wsetselect(w, w->qh, w->qh);
+ q0 = w->q0;
+ while(q0 < w->nr && w->r[q0]!='\n')
+ q0++;
+ wsetselect(w, q0, q0);
wshow(w, w->q0);
return;
}
Cheers,
Sean
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-03 19:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-03 19:19 [9front] rio ctrlb patch Sean Hinchee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).