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
b77b1391
Commit
b77b1391
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: improve some indentation and reshuffle a few lines
parent
7e0c4e57
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/browser.c
+4
-4
src/browser.c
src/files.c
+10
-10
src/files.c
src/prompt.c
+2
-2
src/prompt.c
src/search.c
+20
-20
src/search.c
with
36 additions
and
36 deletions
+36
-36
src/browser.c
View file @
b77b1391
This diff is collapsed.
Click to expand it.
src/files.c
View file @
b77b1391
...
...
@@ -1085,21 +1085,21 @@ void do_insertfile(
while
(
TRUE
)
{
#ifndef NANO_TINY
if
(
execute
)
{
msg
=
#ifndef DISABLE_MULTIBUFFER
ISSET
(
MULTIBUFFER
)
?
_
(
"Command to execute in new buffer [from %s] "
)
:
if
(
ISSET
(
MULTIBUFFER
))
msg
=
_
(
"Command to execute in new buffer [from %s] "
);
else
#endif
_
(
"Command to execute [from %s] "
);
msg
=
_
(
"Command to execute [from %s] "
);
}
else
#endif
/* NANO_TINY */
{
msg
=
#ifndef DISABLE_MULTIBUFFER
ISSET
(
MULTIBUFFER
)
?
_
(
"File to insert into new buffer [from %s] "
)
:
if
(
ISSET
(
MULTIBUFFER
))
msg
=
_
(
"File to insert into new buffer [from %s] "
);
else
#endif
_
(
"File to insert [from %s] "
);
msg
=
_
(
"File to insert [from %s] "
);
}
present_path
=
mallocstrcpy
(
present_path
,
"./"
);
...
...
@@ -1117,8 +1117,8 @@ void do_insertfile(
#endif
edit_refresh
,
msg
,
#ifndef DISABLE_OPERATINGDIR
operating_dir
!=
NULL
&&
strcmp
(
operating_dir
,
"."
)
!=
0
?
operating_dir
:
operating_dir
!=
NULL
&&
strcmp
(
operating_dir
,
"."
)
!=
0
?
operating_dir
:
#endif
"./"
);
...
...
This diff is collapsed.
Click to expand it.
src/prompt.c
View file @
b77b1391
...
...
@@ -546,7 +546,7 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
}
#ifdef DEBUG
fprintf
(
stderr
,
"acquir
e_an_answer
: answer =
\"
%s
\"
, statusbar_x = %lu
\n
"
,
answer
,
(
unsigned
long
)
statusbar_x
);
fprintf
(
stderr
,
"acquir
ing
: answer =
\"
%s
\"
, statusbar_x = %lu
\n
"
,
answer
,
(
unsigned
long
)
statusbar_x
);
#endif
update_the_statusbar
();
...
...
@@ -709,7 +709,7 @@ int do_prompt(bool allow_tabs,
{
va_list
ap
;
int
retval
=
KEY_WINCH
;
functionptrtype
func
;
functionptrtype
func
=
NULL
;
#ifndef DISABLE_TABCOMP
bool
listed
=
FALSE
;
#endif
...
...
This diff is collapsed.
Click to expand it.
src/search.c
View file @
b77b1391
...
...
@@ -164,7 +164,7 @@ int search_init(bool replacing, bool use_answer)
/* TRANSLATORS: This is the main search prompt. */
edit_refresh
,
"%s%s%s%s%s%s"
,
_
(
"Search"
),
#ifndef NANO_TINY
/* TRANSLATORS: The next three
strings are modifiers of
the search prompt. */
/* TRANSLATORS: The next three
modify
the search prompt. */
ISSET
(
CASE_SENSITIVE
)
?
_
(
" [Case Sensitive]"
)
:
#endif
""
,
...
...
@@ -177,7 +177,7 @@ int search_init(bool replacing, bool use_answer)
#endif
""
,
replacing
?
#ifndef NANO_TINY
/* TRANSLATORS: The next two
strings are modifiers of
the search prompt. */
/* TRANSLATORS: The next two
modify
the search prompt. */
openfile
->
mark_set
?
_
(
" (to replace) in selection"
)
:
#endif
_
(
" (to replace)"
)
:
""
,
buf
);
...
...
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