
10 Jan
2008
10 Jan
'08
9:13 a.m.
On Wed, Jan 09, 2008 at 09:42:57PM +0000, Nicolas Pouillard wrote:
Wed Jan 9 22:39:16 CET 2008 nicolas.pouillard@gmail.com * prompt: Allow to provide a default text in the prompt config.
initState :: XPrompt p => Display -> Window -> Window -> Rectangle -> ComplFunction -> GC -> XMonadFont -> p -> [History] -> XPConfig -> XPState initState d rw w s compl gc fonts pt h c = - XPS d rw w s Nothing Nothing compl gc fonts (XPT pt) "" 0 h c + XPS d rw w s Nothing Nothing compl gc fonts (XPT pt) (defaultText c) 0 h c
I think the cursor should be placed after the default text, and not on the first character. I've just pushed a patch in that direction. Thanks Andrea