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
a429dc4a
Commit
a429dc4a
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, to better fit its usage
parent
91073be4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+4
-4
src/text.c
with
4 additions
and
4 deletions
+4
-4
src/text.c
View file @
a429dc4a
...
...
@@ -1618,13 +1618,13 @@ bool do_wrap(filestruct *line)
/* When requested, snip trailing blanks off the wrapped line. */
if
(
ISSET
(
TRIM_BLANKS
))
{
size_t
cur
_x
=
move_mbleft
(
line
->
data
,
wrap_loc
);
size_t
tail
_x
=
move_mbleft
(
line
->
data
,
wrap_loc
);
size_t
typed_x
=
move_mbleft
(
line
->
data
,
old_x
);
while
(
is_blank_mbchar
(
line
->
data
+
cur_x
)
&&
cur_x
!=
typed_x
)
{
openfile
->
current_x
=
cur
_x
;
while
(
tail_x
!=
typed_x
&&
is_blank_mbchar
(
line
->
data
+
tail_x
)
)
{
openfile
->
current_x
=
tail
_x
;
do_delete
();
cur
_x
=
move_mbleft
(
line
->
data
,
cur
_x
);
tail
_x
=
move_mbleft
(
line
->
data
,
tail
_x
);
}
}
...
...
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