~ecs/mrsh-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH madeline] Don't clear buffer when searching

Details
Message ID
<20230217051611.13321-1-sebastian@sebsite.pw>
DKIM signature
pass
Download raw message
Patch: +0 -1
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
Details
Message ID
<CQSPVL5M53C9.2GE1DYGEQFETY@monch>
In-Reply-To
<20230217051611.13321-1-sebastian@sebsite.pw> (view parent)
DKIM signature
missing
Download raw message
thanks!

To git@git.d2evs.net:~ecs/madeline
   9564bb2..e29d1ee  madeline -> madeline
Reply to thread Export thread (mbox)