From 8c005f7c9923e3502a5b06def28178e53f07ee80 Mon Sep 17 00:00:00 2001 From: leo wang <72735229+3181538941@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:10:21 +0800 Subject: [PATCH] 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 --- changelog.md | 1 + mycli/AUTHORS | 1 + mycli/clitoolbar.py | 5 ++--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index c57a0ec0..367e62c8 100644 --- a/changelog.md +++ b/changelog.md @@ -21,6 +21,7 @@ Bug Fixes: * Remove vi-mode bindings for prettify/unprettify. * Honor `\G` when executing from commandline with `-e`. * Correctly report the version of TiDB. +* Revised `botton` spelling mistakes with `bottom` in `mycli/clitoolbar.py` 1.26.1 (2022/09/01) diff --git a/mycli/AUTHORS b/mycli/AUTHORS index 385f89cd..133b8fc1 100644 --- a/mycli/AUTHORS +++ b/mycli/AUTHORS @@ -95,6 +95,7 @@ Contributors: * Kevin Schmeichel * Mel Dafert * Alfred Wingate + * Zhanze Wang Created by: ----------- diff --git a/mycli/clitoolbar.py b/mycli/clitoolbar.py index 24d11083..52b6ee45 100644 --- a/mycli/clitoolbar.py +++ b/mycli/clitoolbar.py @@ -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() @@ -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()) ))