Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
1dbebbca
Commit
1dbebbca
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
screen: keep the help items aligned in more configurations
This fixes
https://savannah.gnu.org/bugs/?48987
.
parent
57d1755d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/global.c
+11
-4
src/global.c
with
11 additions
and
4 deletions
+11
-4
src/global.c
View file @
1dbebbca
...
...
@@ -796,10 +796,16 @@ void shortcut_init(void)
add_to_funcs
(
do_cursorpos_void
,
MMAIN
,
N_
(
"Cur Pos"
),
IFSCHELP
(
nano_cursorpos_msg
),
TOGETHER
,
VIEW
);
#if defined(DISABLE_COLOR) || !defined(DISABLE_JUSTIFY)
#if (!defined(DISABLE_JUSTIFY) && (!defined(DISABLE_SPELLER) || !defined(DISABLE_COLOR)) || \
defined(DISABLE_JUSTIFY) && defined(DISABLE_SPELLER) && defined(DISABLE_COLOR))
/* Conditionally placing this one here or further on, to keep the
* help items nicely paired in most conditions. */
add_to_funcs
(
do_gotolinecolumn_void
,
MMAIN
|
MWHEREIS
,
add_to_funcs
(
do_gotolinecolumn_void
,
MMAIN
,
gotoline_tag
,
IFSCHELP
(
nano_gotoline_msg
),
BLANKAFTER
,
VIEW
);
#endif
#ifndef DISABLE_JUSTIFY
add_to_funcs
(
do_gotolinecolumn_void
,
MWHEREIS
,
gotoline_tag
,
IFSCHELP
(
nano_gotoline_msg
),
BLANKAFTER
,
VIEW
);
#endif
...
...
@@ -894,7 +900,8 @@ void shortcut_init(void)
N_
(
"Next File"
),
IFSCHELP
(
nano_nextfile_msg
),
BLANKAFTER
,
VIEW
);
#endif
#if !defined(DISABLE_COLOR) && defined(DISABLE_JUSTIFY)
#if (defined(DISABLE_JUSTIFY) && (!defined(DISABLE_SPELLER) || !defined(DISABLE_COLOR)) || \
!defined(DISABLE_JUSTIFY) && defined(DISABLE_SPELLER) && defined(DISABLE_COLOR))
add_to_funcs
(
do_gotolinecolumn_void
,
MMAIN
,
gotoline_tag
,
IFSCHELP
(
nano_gotoline_msg
),
BLANKAFTER
,
VIEW
);
#endif
...
...
@@ -967,7 +974,7 @@ void shortcut_init(void)
N_
(
"NextHstory"
),
IFSCHELP
(
nano_next_history_msg
),
BLANKAFTER
,
VIEW
);
#endif
#if
!
def
ined(DISABLE_COLOR) && defined(
DISABLE_JUSTIFY
)
#ifdef
DISABLE_JUSTIFY
add_to_funcs
(
do_gotolinecolumn_void
,
MWHEREIS
,
gotoline_tag
,
IFSCHELP
(
nano_gotoline_msg
),
BLANKAFTER
,
VIEW
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help