diff options
author | mathieui <mathieui@mathieui.net> | 2012-05-17 16:55:31 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-05-17 16:55:31 +0200 |
commit | 0f8a5abdc0818b4071bf4623a12ee95223b11ba3 (patch) | |
tree | 08f669625214f37f02103958f63faaa5492b0944 | |
parent | 64defba0ae18812196caadab26cdea0d24849be5 (diff) | |
download | poezio-0f8a5abdc0818b4071bf4623a12ee95223b11ba3.tar.gz poezio-0f8a5abdc0818b4071bf4623a12ee95223b11ba3.tar.bz2 poezio-0f8a5abdc0818b4071bf4623a12ee95223b11ba3.tar.xz poezio-0f8a5abdc0818b4071bf4623a12ee95223b11ba3.zip |
Add an option to always show the separator - Fixes #2240
-rw-r--r-- | data/default_config.cfg | 4 | ||||
-rw-r--r-- | doc/en/configure.txt | 4 | ||||
-rw-r--r-- | src/tabs.py | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg index 85366204..61c30c21 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -296,6 +296,10 @@ send_time = true max_messages_in_memory = 2048 max_lines_in_memory = 2048 +# Show the separator at the bottom of the text buffer, even if no one +# spoke +show_useless_separator = false + # Set this to true if you want the commands to be executed remotely # (with ssh & the daemon), see the documentation of the /link plugin # for details diff --git a/doc/en/configure.txt b/doc/en/configure.txt index e18b4fbb..e5098da1 100644 --- a/doc/en/configure.txt +++ b/doc/en/configure.txt @@ -438,6 +438,10 @@ foo = true If set to true, the color of the nick will be used in MUCs information messages, instead of the default color from the theme. +*show_useless_separator*:: false + + If true, show the separator in a chat room, even if no one spoke. + *hide_exit_join*:: -1 Exact same thing than hide_status_change, except that it concerns diff --git a/src/tabs.py b/src/tabs.py index be2a886d..92b913b0 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1156,7 +1156,7 @@ class MucTab(ChatTab): def on_gain_focus(self): self.state = 'current' - if self.text_win.built_lines and self.text_win.built_lines[-1] is None: + if self.text_win.built_lines and self.text_win.built_lines[-1] is None and config.getl('show_useless_separator', 'false') != 'true': self.text_win.remove_line_separator() curses.curs_set(1) if self.joined and config.get_by_tabname('send_chat_states', 'true', self.general_jid, True) == 'true' and not self.input.get_text(): |