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
443e1484
Commit
443e1484
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle help-text initialization, to elide a save-and-restore
parent
ac9550d4
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/help.c
+6
-15
src/help.c
with
6 additions
and
15 deletions
+6
-15
src/help.c
View file @
443e1484
...
...
@@ -128,12 +128,6 @@ void do_help(void)
fclose
(
fp
);
/* Compose the help text from all the pieces. */
tabsize
=
8
;
help_init
();
inhelp
=
TRUE
;
location
=
0
;
/* Save the settings of all flags. */
memcpy
(
stash
,
flags
,
sizeof
(
flags
));
...
...
@@ -156,6 +150,12 @@ void do_help(void)
UNSET
(
LINE_NUMBERS
);
margin
=
0
;
#endif
tabsize
=
8
;
/* Compose the help text from all the pieces. */
help_init
();
inhelp
=
TRUE
;
location
=
0
;
bottombars
(
MHELP
);
wnoutrefresh
(
bottomwin
);
...
...
@@ -296,12 +296,6 @@ void help_init(void)
const
subnfunc
*
f
;
const
sc
*
s
;
#ifndef NANO_TINY
bool
old_whitespace
=
ISSET
(
WHITESPACE_DISPLAY
);
UNSET
(
WHITESPACE_DISPLAY
);
#endif
/* First, set up the initial help text for the current function. */
if
(
currmenu
==
MWHEREIS
||
currmenu
==
MREPLACE
||
currmenu
==
MREPLACEWITH
)
{
htx
[
0
]
=
N_
(
"Search Command Help Text
\n\n
"
...
...
@@ -561,9 +555,6 @@ void help_init(void)
}
}
}
if
(
old_whitespace
)
SET
(
WHITESPACE_DISPLAY
);
#endif
/* !NANO_TINY */
/* If all went well, we didn't overwrite the allocated space. */
...
...
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