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
8f95f9b1
Commit
8f95f9b1
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle three initializations and trim some comments
parent
c6512a97
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/prompt.c
+8
-14
src/prompt.c
with
8 additions
and
14 deletions
+8
-14
src/prompt.c
View file @
8f95f9b1
...
...
@@ -729,23 +729,17 @@ int do_prompt(bool allow_tabs,
int
do_yesno_prompt
(
bool
all
,
const
char
*
msg
)
{
int
response
=
-
2
,
width
=
16
;
const
char
*
yesstr
;
/* String of Yes characters accepted. */
const
char
*
nostr
;
/* Same for No. */
const
char
*
allstr
;
/* And All, surprise! */
int
oldmenu
=
currmenu
;
assert
(
msg
!=
NULL
);
/* yesstr, nostr, and allstr are strings of any length. Each string
* consists of all single-byte characters accepted as valid
* characters for that value. The first value will be the one
* displayed in the shortcuts. */
/* TRANSLATORS: For the next three strings, if possible, specify
* the single-byte shortcuts for both your language and English.
* For example, in French: "OoYy" for "Oui". */
yesstr
=
_
(
"Yy"
);
nostr
=
_
(
"Nn"
);
allstr
=
_
(
"Aa"
);
* For example, in French: "OoYy", for both "Oui" and "Yes". */
const
char
*
yesstr
=
_
(
"Yy"
);
const
char
*
nostr
=
_
(
"Nn"
);
const
char
*
allstr
=
_
(
"Aa"
);
/* The above three variables consist of all the single-byte characters
* that are accepted for the corresponding answer. Of each variable,
* the first character is displayed in the help lines. */
do
{
int
kbinput
;
...
...
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