[xmonad] darcs patch: prompt: Allow to provide a default text in the prompt ...

Andrea Rossato mailing_list at istitutocolli.org
Thu Jan 10 09:13:35 EST 2008


On Wed, Jan 09, 2008 at 09:42:57PM +0000, Nicolas Pouillard wrote:
> Wed Jan  9 22:39:16 CET 2008  nicolas.pouillard at 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


More information about the xmonad mailing list