This makes ^f and right arrow identical to each other
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
This also works with ctrl+right and alt+right since it works like that
in fish
made/line.ha | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/made/line.ha b/made/line.ha
index 735ee6e..2f76c18 100644
--- a/made/line.ha
+++ b/made/line.ha
@@ -193,7 +193,11 @@ fn csi(s: *state) (bool | str | error) = {
case 'B' => // down
histmove(s, false);
case 'C' => // right
- next(s, len(buf) != 0);
+ if (s.pos == len(s.buf)) {
+ insert_hint(s);
+ } else {
+ next(s, len(buf) != 0);
+ };
case 'D' => // left
prev(s, len(buf) != 0);
case 'H' => // home
--
2.38.4