mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
tweaks: make better use of an existing variable
This commit is contained in:
parent
c8a9a96578
commit
738487f13d
@ -1035,9 +1035,9 @@ void do_enter(void)
|
||||
#ifdef ENABLE_JUSTIFY
|
||||
/* If the next line is in this same paragraph, use its indentation
|
||||
* as the model, as it is more likely to be what the user wants. */
|
||||
if (openfile->current->next && inpar(openfile->current->next) &&
|
||||
!begpar(openfile->current->next, 0))
|
||||
sampleline = openfile->current->next;
|
||||
if (sampleline->next && inpar(sampleline->next) &&
|
||||
!begpar(sampleline->next, 0))
|
||||
sampleline = sampleline->next;
|
||||
#endif
|
||||
extra = indent_length(sampleline->data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user