diff options
author | mathieui <mathieui@mathieui.net> | 2021-05-25 19:01:50 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-05-25 19:01:50 +0200 |
commit | 77a618a8d599ec31f77b8d3756ba8f1b24c32f8d (patch) | |
tree | 1d46ccc6e1e7ad47dd3b503b78d98ecc9f98c0f2 /poezio/windows/data_forms.py | |
parent | 6c0be6952407ed8f191a6e1f72f91181d3cee5ba (diff) | |
download | poezio-77a618a8d599ec31f77b8d3756ba8f1b24c32f8d.tar.gz poezio-77a618a8d599ec31f77b8d3756ba8f1b24c32f8d.tar.bz2 poezio-77a618a8d599ec31f77b8d3756ba8f1b24c32f8d.tar.xz poezio-77a618a8d599ec31f77b8d3756ba8f1b24c32f8d.zip |
Fix: do not scroll right by default in dataforms/bookmark text
Seeing "…@muc.example.com" instead of "toto@muc.…" is not really
helpful, especially in bookmarks.
Diffstat (limited to 'poezio/windows/data_forms.py')
-rw-r--r-- | poezio/windows/data_forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py index bdc6cfe1..1b22aa2c 100644 --- a/poezio/windows/data_forms.py +++ b/poezio/windows/data_forms.py @@ -330,7 +330,8 @@ class TextSingleWin(FieldInputMixin, Input): Input.__init__(self) self.text = field.get_value() if isinstance(field.get_value(), str)\ else "" - self.pos = len(self.text) + self.pos = 0 + self.view_pos = 0 self.color = get_theme().COLOR_NORMAL_TEXT def reply(self): |