Commit:f5998e74c6964a5118c1ab97038b38401f3e684f (browse)
Parent:7daab6308be2a52987b760d4141ed79b3a31bdbd
Author:Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:Mon Feb 22 10:48:24 CET 2021
Message:
curwindow: fix race condition

riow => riow
@@ -28,11 +28,13 @@
 }
 
 fn curwindow {
+	cur=''
 	for(f in /dev/wsys/*){
 		a=`{winread $f}
 		if(~ $a(5) current)
-			basename $f
+			cur=`{basename $f}
 	}
+	echo -n $cur
 }
 
 fn togglefullscreen {