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
4295baa5
Commit
4295baa5
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: transform a 'do' to a 'while', and reshuffle a comment
parent
467cc8ed
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/text.c
+7
-6
src/text.c
with
7 additions
and
6 deletions
+7
-6
src/text.c
View file @
4295baa5
...
...
@@ -2435,23 +2435,24 @@ void do_justify(bool full_justify)
uncutfunc
->
desc
=
unjust_tag
;
display_main_list
();
/* Now get a keystroke and see if it's unjustify. If not, put back
* the keystroke and return. */
#ifndef NANO_TINY
do
{
kbinput
=
KEY_WINCH
;
/* Now wait for the next keystroke. */
while
(
kbinput
==
KEY_WINCH
)
#endif
{
statusbar
(
_
(
"Can now UnJustify!"
));
place_the_cursor
();
kbinput
=
do_input
(
FALSE
);
#ifndef NANO_TINY
}
while
(
kbinput
==
KEY_WINCH
);
#endif
}
/* Unset the suppression flag after showing the Unjustify message. */
suppress_cursorpos
=
FALSE
;
func
=
func_from_key
(
&
kbinput
);
/* If the keystroke was Unjustify or Undo, then undo the justification. */
if
(
func
==
do_uncut_text
#ifndef NANO_TINY
||
func
==
do_undo
...
...
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