Skip to content

Commit 8c005f7

Browse files
leowzzj-bennet
andauthored
Revised botton spelling mistakes with bottom (#1117)
* To optimize the initialization writing with `result` list Revised `botton` spelling mistakes with `bottom` * To optimize the initialization writing with `result` list Revised `botton` spelling mistakes with `bottom` Add me to AUTHORS Add contribute to changelog.md --------- Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
1 parent 1bd4065 commit 8c005f7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Bug Fixes:
2121
* Remove vi-mode bindings for prettify/unprettify.
2222
* Honor `\G` when executing from commandline with `-e`.
2323
* Correctly report the version of TiDB.
24+
* Revised `botton` spelling mistakes with `bottom` in `mycli/clitoolbar.py`
2425

2526

2627
1.26.1 (2022/09/01)

mycli/AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Contributors:
9595
* Kevin Schmeichel
9696
* Mel Dafert
9797
* Alfred Wingate
98+
* Zhanze Wang
9899

99100
Created by:
100101
-----------

mycli/clitoolbar.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
def create_toolbar_tokens_func(mycli, show_fish_help):
88
"""Return a function that generates the toolbar tokens."""
99
def get_toolbar_tokens():
10-
result = []
11-
result.append(('class:bottom-toolbar', ' '))
10+
result = [('class:bottom-toolbar', ' ')]
1211

1312
if mycli.multi_line:
1413
delimiter = special.get_current_delimiter()
@@ -26,7 +25,7 @@ def get_toolbar_tokens():
2625
'[F3] Multiline: OFF '))
2726
if mycli.prompt_app.editing_mode == EditingMode.VI:
2827
result.append((
29-
'class:botton-toolbar.on',
28+
'class:bottom-toolbar.on',
3029
'Vi-mode ({})'.format(_get_vi_mode())
3130
))
3231

0 commit comments

Comments
 (0)