fix pylint/flake8 errors
This commit is contained in:
parent
f3b52aaf23
commit
91b70fab70
@ -654,7 +654,8 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
if self._now_focused and config.val.tabs.mode_on_change == 'restore':
|
if self._now_focused and config.val.tabs.mode_on_change == 'restore':
|
||||||
current_mode = modeman.instance(self._win_id).mode
|
current_mode = modeman.instance(self._win_id).mode
|
||||||
# only save insert & passthrough mode. otherwise default to normal
|
# only save insert & passthrough mode. otherwise default to normal
|
||||||
if not current_mode in (usertypes.KeyMode.insert,usertypes.KeyMode.passthrough):
|
input_modes = (usertypes.KeyMode.insert, usertypes.KeyMode.passthrough)
|
||||||
|
if current_mode not in input_modes:
|
||||||
current_mode = usertypes.KeyMode.normal
|
current_mode = usertypes.KeyMode.normal
|
||||||
self._now_focused.data.input_mode = current_mode
|
self._now_focused.data.input_mode = current_mode
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user