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
6500f769
Commit
6500f769
authored
8 years ago
by
David Lawrence Ramsey
Committed by
Benno Schulenberg
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: move comments outside of if blocks in break_line()
parent
f95836a9
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
+5
-5
src/text.c
with
5 additions
and
5 deletions
+5
-5
src/text.c
View file @
6500f769
...
...
@@ -1647,22 +1647,22 @@ ssize_t break_line(const char *line, ssize_t goal, bool snap_at_nl)
cur_loc
+=
char_len
;
}
/* If the whole line displays shorter than goal, we're done. */
if
(
goal
>=
cur_pos
)
/* In fact, the whole line displays shorter than goal. */
return
cur_loc
;
#ifndef DISABLE_HELP
/* If we're wrapping a help text and no blank was found, or was
* found only as the first character, force a line break. */
if
(
snap_at_nl
&&
blank_loc
<
1
)
{
/* If no blank was found, or was found only as the first
* character, force a line break. */
cur_loc
-=
char_len
;
return
cur_loc
;
}
#endif
/* If no blank was found within the goal width, try to find a
* blank beyond it. */
if
(
blank_loc
==
-
1
)
{
/* No blank was found within the goal width,
* so now try and find a blank beyond it. */
bool
found_blank
=
FALSE
;
ssize_t
found_blank_loc
=
0
;
...
...
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