fix pylint/flake8 errors

This commit is contained in:
Marc Jauvin 2018-01-15 13:39:42 -05:00
parent 05d076ba9f
commit 7d620a4bfc

View File

@ -652,7 +652,8 @@ class TabbedBrowser(tabwidget.TabWidget):
if self._now_focused and config.val.tabs.mode_on_change == 'restore':
current_mode = modeman.instance(self._win_id).mode
# 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
self._now_focused.data.input_mode = current_mode