ref: cee187b311103063517ed23457c70549b4cab244
parent: 17bbd3c623715b0ebb5c7cf5d2c8a1be0ec0e352
author: glenda <glenda@cirno>
date: Sun Apr 6 03:50:13 EDT 2025
spawn win with alt+enter
--- a/text.c
+++ b/text.c
@@ -922,7 +922,12 @@
}
break;
case '\n':
- if(t->what == Body && t->w->indent[AUTOINDENT]){
+ if(altdown){
+ /* TODO: Make this work even with no window selected */
+ Runestr dir = dirname(t, nil, 0);
+ run(nil, "win", dir.r, dir.nr, TRUE, nil, 0, FALSE);
+ }
+ else if(t->what == Body && t->w->indent[AUTOINDENT]){
/* find beginning of previous line using backspace code */
nnb = textbswidth(t, 0x15); /* ^U case */
rp = runemalloc(nnb + 1);
--
⑨