fix pylint/flake8 errors

This commit is contained in:
Marc Jauvin 2018-01-15 13:39:42 -05:00
parent f3b52aaf23
commit 91b70fab70

View File

@ -654,7 +654,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