Skip to content
GitLab
Menu
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
7e1648fd
Commit
7e1648fd
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
help: set tabsize to the default width while showing a help text
So that the shortcut explanations get properly aligned.
parent
e05dfda2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/help.c
+4
-1
src/help.c
with
4 additions
and
1 deletion
+4
-1
src/help.c
View file @
7e1648fd
...
...
@@ -106,6 +106,7 @@ void do_help(void)
int
line_size
;
int
saved_margin
=
margin
;
/* For avoiding the line numbers on the help screen. */
ssize_t
was_tabsize
=
tabsize
;
char
*
saved_answer
=
(
answer
!=
NULL
)
?
strdup
(
answer
)
:
NULL
;
/* Store current answer when user invokes help at the prompt. */
unsigned
stash
[
sizeof
(
flags
)
/
sizeof
(
flags
[
0
])];
...
...
@@ -124,7 +125,8 @@ void do_help(void)
fclose
(
fp
);
/* Set help_text as the string to display. */
/* Compose the help text from all the pieces. */
tabsize
=
8
;
help_init
();
inhelp
=
TRUE
;
location
=
0
;
...
...
@@ -266,6 +268,7 @@ void do_help(void)
free
(
answer
);
answer
=
saved_answer
;
tabsize
=
was_tabsize
;
remove
(
tempfilename
);
free
(
tempfilename
);
...
...
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