shithub: lola

Download patch

ref: 3d6a64e17436308b7f02530f7e2d6af6b6b3ae5a
parent: 0d4390b3430bd8dd9e2ed21a3ed977856ea5505c
author: aap <aap@papnet.eu>
date: Mon Aug 26 19:34:47 EDT 2024

fix pick file

--- a/fs.c
+++ b/fs.c
@@ -423,7 +423,10 @@
 		 *       it might block this thread. */
 		Channel *wc = chancreate(sizeof(WinTab*), 0);
 		sendp(pickchan, wc);
-		xf->w = w = recvp(wc);
+		w = recvp(wc);
+		/* actually want the current tab */
+		if(w) w = ((Window*)w)->cur;
+		xf->w = w;
 		if(w)
 			incref(w);
 		chanfree(wc);