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
f8c33e86
Commit
f8c33e86
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reduce the scope of two variables
parent
b6efea26
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/browser.c
+4
-4
src/browser.c
with
4 additions
and
4 deletions
+4
-4
src/browser.c
View file @
f8c33e86
...
...
@@ -122,9 +122,6 @@ char *do_browser(char *path)
titlebar
(
path
);
while
(
TRUE
)
{
struct
stat
st
;
int
i
;
/* Make sure that the cursor is off. */
curs_set
(
0
);
lastmessage
=
HUSH
;
...
...
@@ -235,7 +232,7 @@ char *do_browser(char *path)
selected
=
filelist_len
-
1
;
}
else
if
(
func
==
goto_dir_void
)
{
/* Ask for the directory to go to. */
i
=
do_prompt
(
TRUE
,
int
i
=
do_prompt
(
TRUE
,
#ifndef DISABLE_TABCOMP
FALSE
,
#endif
...
...
@@ -245,6 +242,7 @@ char *do_browser(char *path)
#endif
/* TRANSLATORS: This is a prompt. */
browser_refresh
,
_
(
"Go To Directory"
));
/* If the directory begins with a newline (i.e. an
* encoded null), treat it as though it's blank. */
if
(
i
<
0
||
*
answer
==
'\n'
)
{
...
...
@@ -304,6 +302,8 @@ char *do_browser(char *path)
if
(
selected
<
filelist_len
-
1
)
selected
++
;
}
else
if
(
func
==
do_enter
)
{
struct
stat
st
;
/* We can't move up from "/". */
if
(
strcmp
(
filelist
[
selected
],
"/.."
)
==
0
)
{
statusline
(
ALERT
,
_
(
"Can't move up a directory"
));
...
...
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