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
0133d5cb
Commit
0133d5cb
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide two variables that are used just once
parent
9066a96d
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
+1
-8
src/text.c
with
1 addition
and
8 deletions
+1
-8
src/text.c
View file @
0133d5cb
...
...
@@ -1549,10 +1549,6 @@ bool do_wrap(filestruct *line)
/* The text after the wrap point. */
size_t
rest_length
;
/* The length of the remainder. */
const
char
*
next_line
=
NULL
;
/* The next line, minus indentation. */
size_t
next_line_len
=
0
;
/* The length of next_line. */
size_t
old_x
=
openfile
->
current_x
;
filestruct
*
old_line
=
openfile
->
current
;
...
...
@@ -1633,10 +1629,7 @@ bool do_wrap(filestruct *line)
#endif
}
next_line
=
line
->
next
->
data
;
next_line_len
=
strlen
(
next_line
);
if
(
rest_length
+
next_line_len
<=
fill
)
{
if
(
rest_length
+
strlen
(
line
->
next
->
data
)
<=
fill
)
{
/* Delete the LF to join the two lines. */
do_delete
();
/* Delete any leading blanks from the joined-on line. */
...
...
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