This makes it possible to type something, and then press ^r to search
for whatever you typed, rather than just deleting it.
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
made/line.ha | 1 -
1 file changed, 1 deletion(-)
diff --git a/made/line.ha b/made/line.ha
index 0ed3503..d3bb363 100644
--- a/made/line.ha
+++ b/made/line.ha
@@ -108,7 +108,6 @@ export fn line(cfg: (*config | str)) (str | void | io::EOF | error) = {
case '\x12' => // ^r
if (s.searching && s.hidx > 0) s.hidx -= 1;
if (!s.searching) {
- clear(&s);
s.searching = true;
};
case '\x15' => // ^u
--
2.38.4