Change in_mode to in-mode everywhere

This commit is contained in:
Constantine Theocharis 2020-06-09 14:52:15 +01:00
parent e594c0cb58
commit ca14a91741
2 changed files with 4 additions and 4 deletions

View File

@ -3576,7 +3576,7 @@ Valid values:
* +always+: Always show the statusbar.
* +never+: Always hide the statusbar unless a message is shown.
* +in_mode+: Only show the statusbar when in modes other than normal mode or when a message is shown.
* +in-mode+: Only show the statusbar when in modes other than normal mode or when a message is shown.
Default: +pass:[always]+

View File

@ -260,7 +260,7 @@ class StatusBar(QWidget):
self.hide()
elif strategy == 'never':
self.hide()
elif strategy == 'in_mode':
elif strategy == 'in-mode':
try:
mode_manager = modeman.instance(self._win_id)
except modeman.UnavailableError:
@ -350,7 +350,7 @@ class StatusBar(QWidget):
def on_mode_entered(self, mode):
"""Mark certain modes in the commandline."""
mode_manager = modeman.instance(self._win_id)
if config.val.statusbar.show == 'in_mode':
if config.val.statusbar.show == 'in-mode':
self.show()
if mode_manager.parsers[mode].passthrough:
self._set_mode_text(mode.name)
@ -366,7 +366,7 @@ class StatusBar(QWidget):
def on_mode_left(self, old_mode, new_mode):
"""Clear marked mode."""
mode_manager = modeman.instance(self._win_id)
if config.val.statusbar.show == 'in_mode':
if config.val.statusbar.show == 'in-mode':
self.hide()
if mode_manager.parsers[old_mode].passthrough:
if mode_manager.parsers[new_mode].passthrough: