awful.prompt: add trail space in prompt_text_with_cursor()
commit4c031ba398db963a196e03d2d5d22fd7e819a215
authorkoniu <gkusnierz@gmail.com>
Wed, 19 Nov 2008 12:40:13 +0000 (19 12:40 +0000)
committerkoniu <gkusnierz@gmail.com>
Wed, 19 Nov 2008 13:00:04 +0000 (19 13:00 +0000)
tree0b2806626d5e334211d9c23fee93dba1d5224a36
parentb4f16ff649926f86abbf0a2c584e45ef8c3f8e76
awful.prompt: add trail space in prompt_text_with_cursor()

Adds a trailing space after text if cursor position < text length to
prevent width of the widget changing particularly useful when using
'text' and 'selectall' to do eg. in-place renaming.

Sample textbox content (# space, _ cursor).

Before:
    textbox before prompt: #term#
selectall prompt textbox : #_erm   <- shorter than other cases
      after pressing end : #term_

After:
    textbox before prompt: #term#
selectall prompt textbox : #_erm#
      after pressing end : #term_

Signed-off-by: koniu <gkusnierz@gmail.com>
lib/awful/prompt.lua.in