Commit bbabf956 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix bracket matching breakage in do_statusbar_input() since its shortcut

was changed to Ctrl-]


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 11 deletions
+7 -11
...@@ -66,6 +66,8 @@ CVS code - ...@@ -66,6 +66,8 @@ CVS code -
do_indent_marked(), do_indent_marked_void(), and do_indent_marked(), do_indent_marked_void(), and
do_unindent_marked_void(); changes to shortcut_init(). (Chris do_unindent_marked_void(); changes to shortcut_init(). (Chris
and DLR) and DLR)
- Change the shortcut to find the matching bracket to ^].
Changes to shortcut_init() and do_statusbar_input(). (DLR)
- Add the ability to move to the first and last line of the help - Add the ability to move to the first and last line of the help
text and the first and last file in the file browser via text and the first and last file in the file browser via
Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to do_browser(), Meta-\ (Meta-|) and Meta-/ (Meta-?). Changes to do_browser(),
...@@ -127,7 +129,6 @@ CVS code - ...@@ -127,7 +129,6 @@ CVS code -
(DLR and Benno Schulenberg, suggested by Benno Schulenberg) (DLR and Benno Schulenberg, suggested by Benno Schulenberg)
- Tweak the descriptions of some shortcut keys to make them more - Tweak the descriptions of some shortcut keys to make them more
uniform. (Benno Schulenberg, minor tweaks by DLR) uniform. (Benno Schulenberg, minor tweaks by DLR)
- Change the shortcut to find the matching bracket to ^]. (DLR)
- Shorten the "Where is Next" shortcut name to fit on the screen - Shorten the "Where is Next" shortcut name to fit on the screen
after adding Meta-\ (Meta-|) and Meta-/ (Meta-?). (DLR) after adding Meta-\ (Meta-|) and Meta-/ (Meta-?). (DLR)
- Lengthen the "UnCut Txt" shortcut name to "UnCut Text", as - Lengthen the "UnCut Txt" shortcut name to "UnCut Text", as
......
...@@ -89,17 +89,13 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t, ...@@ -89,17 +89,13 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t,
input == NANO_BACKSPACE_KEY || input == NANO_DELETE_KEY || input == NANO_BACKSPACE_KEY || input == NANO_DELETE_KEY ||
input == NANO_CUT_KEY || input == NANO_CUT_KEY ||
#ifndef NANO_TINY #ifndef NANO_TINY
input == NANO_NEXTWORD_KEY || input == NANO_NEXTWORD_KEY || input == NANO_BRACKET_KEY ||
#endif #endif
(*meta_key == TRUE && ( (*meta_key == TRUE && (
#ifndef NANO_TINY #ifndef NANO_TINY
input == NANO_PREVWORD_KEY || input == NANO_PREVWORD_KEY ||
#endif #endif
input == NANO_VERBATIM_KEY input == NANO_VERBATIM_KEY)));
#ifndef NANO_TINY
|| input == NANO_BRACKET_KEY
#endif
)));
/* Set s_or_t to TRUE if we got a shortcut. */ /* Set s_or_t to TRUE if we got a shortcut. */
*s_or_t = have_shortcut; *s_or_t = have_shortcut;
...@@ -184,8 +180,7 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t, ...@@ -184,8 +180,7 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t,
break; break;
#ifndef NANO_TINY #ifndef NANO_TINY
case NANO_BRACKET_KEY: case NANO_BRACKET_KEY:
if (*meta_key == TRUE) do_statusbar_find_bracket();
do_statusbar_find_bracket();
break; break;
#endif #endif
case NANO_VERBATIM_KEY: case NANO_VERBATIM_KEY:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment