Skip to content

Commit

Permalink
To optimize the initialization writing with result list
Browse files Browse the repository at this point in the history
Revised `botton` spelling mistakes with `bottom`
  • Loading branch information
leowzz committed May 21, 2023
1 parent c6417d8 commit b5d0036
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mycli/clitoolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
def create_toolbar_tokens_func(mycli, show_fish_help):
"""Return a function that generates the toolbar tokens."""
def get_toolbar_tokens():
result = []
result.append(('class:bottom-toolbar', ' '))
result = [('class:bottom-toolbar', ' ')]

if mycli.multi_line:
delimiter = special.get_current_delimiter()
Expand All @@ -26,7 +25,7 @@ def get_toolbar_tokens():
'[F3] Multiline: OFF '))
if mycli.prompt_app.editing_mode == EditingMode.VI:
result.append((
'class:botton-toolbar.on',
'class:bottom-toolbar.on',
'Vi-mode ({})'.format(_get_vi_mode())
))

Expand Down

0 comments on commit b5d0036

Please sign in to comment.