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
d9148e7b
Commit
d9148e7b
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide an unneeded variable
parent
0a18d891
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
+6
-11
src/text.c
with
6 additions
and
11 deletions
+6
-11
src/text.c
View file @
d9148e7b
...
...
@@ -2516,8 +2516,6 @@ void do_justify(bool full_justify)
/* Splice the justify buffer back into the file, but only if we
* actually justified something. */
if
(
first_par_line
!=
NULL
)
{
filestruct
*
top_save
;
/* Partition the filestruct so that it contains only the
* text of the justified paragraph. */
filepart
=
partition_filestruct
(
first_par_line
,
0
,
...
...
@@ -2530,16 +2528,16 @@ void do_justify(bool full_justify)
openfile
->
fileage
=
jusbuffer
;
openfile
->
filebot
=
jusbottom
;
top_save
=
openfile
->
fileage
;
/* Unpartition the filestruct so that it contains all the
* text again. Note that the justified paragraph has been
* replaced with the unjustified paragraph. */
unpartition_filestruct
(
&
filepart
);
/* Renumber, starting with the beginning line of the old
* partition. */
renumber
(
top_save
);
/* Renumber, from the beginning of the unjustified part. */
renumber
(
jusbuffer
);
/* Mark the justify buffer as empty, as it's been swallowed. */
jusbuffer
=
NULL
;
/* Restore the justify we just did (ungrateful user!). */
openfile
->
edittop
=
edittop_save
;
...
...
@@ -2553,12 +2551,9 @@ void do_justify(bool full_justify)
}
#endif
openfile
->
modified
=
modified_save
;
/* Clear the justify buffer. */
jusbuffer
=
NULL
;
if
(
!
openfile
->
modified
)
titlebar
(
NULL
);
refresh_needed
=
TRUE
;
}
}
else
{
...
...
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