summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-21 21:05:42 +0200
committermathieui <mathieui@mathieui.net>2018-07-21 21:38:26 +0200
commit784f2d287623d2dbaac16343d5bf10b3a68bd0f7 (patch)
tree847204f7ab3e90bc22e940192e5a74335fa11b1d
parent115aee3d050a44be6223fb7a4f61f786719b32e1 (diff)
downloadpoezio-784f2d287623d2dbaac16343d5bf10b3a68bd0f7.tar.gz
poezio-784f2d287623d2dbaac16343d5bf10b3a68bd0f7.tar.bz2
poezio-784f2d287623d2dbaac16343d5bf10b3a68bd0f7.tar.xz
poezio-784f2d287623d2dbaac16343d5bf10b3a68bd0f7.zip
Fix the move_tab command
-rw-r--r--poezio/core/core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index 51f6f41e..641ce213 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -398,7 +398,7 @@ class Core:
Called when the option create_gaps is changed.
Remove all gaptabs if switching from gaps to nogaps.
"""
- self.tabs.update_gaps(value.lower() == "false")
+ self.tabs.update_gaps(value.lower() != "false")
def on_request_receipts_config_change(self, option, value):
"""
@@ -1019,7 +1019,8 @@ class Core:
Insert a tab at a position, changing the number of the following tabs
returns False if it could not move the tab, True otherwise
"""
- self.tabs.insert_tab(old_pos, new_pos, config.get('create_gaps'))
+ return self.tabs.insert_tab(old_pos, new_pos,
+ config.get('create_gaps'))
### Move actions (e.g. go to next room) ###