From 790a2c53738506514881502116e51d5496a7d2c6 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Mon, 19 Nov 2007 01:03:57 +0100 Subject: Prompt: comment only darcs-hash:20071119000357-32816-ad0af5478f4d4214b84d1a43cf9ca66efba445a1.gz --- XMonad/Prompt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad') diff --git a/XMonad/Prompt.hs b/XMonad/Prompt.hs index dd88d75..01bb31c 100644 --- a/XMonad/Prompt.hs +++ b/XMonad/Prompt.hs @@ -436,7 +436,7 @@ printPrompt drw = do let (gc,(c,(d,fs))) = (gcon &&& config &&& dpy &&& fontS) st (prt,(com,off)) = (show . xptype &&& command &&& offset) st str = prt ++ com - -- compose the string in 3 parts: till the cursor, the cursor and the rest + -- break the string in 3 parts: till the cursor, the cursor and the rest (f,p,ss) = if off >= length com then (str, " ","") -- add a space: it will be our cursor ;-) else let (a,b) = (splitAt off com) -- cgit v1.2.3