mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-17 23:06:25 -05:00
Avoid inserting extra NL while doing fill/justify paragraph at EOF.
This commit is contained in:
parent
8540adea9e
commit
3889f1709c
8
word.c
8
word.c
@ -386,7 +386,7 @@ static int parafillnjustify( int f, int n, int justify_f) {
|
||||
gotoeop(FALSE, 1);
|
||||
eopline = lforw(curwp->w_dotp);
|
||||
|
||||
/* and back top the beginning of the paragraph */
|
||||
/* and back to the beginning of the paragraph */
|
||||
gotobop(FALSE, 1);
|
||||
|
||||
/* initialize various info */
|
||||
@ -463,8 +463,12 @@ static int parafillnjustify( int f, int n, int justify_f) {
|
||||
wordlen = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* and add a last newline for the end of our new paragraph */
|
||||
lnewline();
|
||||
if( eopline == curbp->b_linep) /* at EOF? */
|
||||
forwchar( FALSE, 1) ;
|
||||
else
|
||||
lnewline() ;
|
||||
|
||||
if( justflag) {
|
||||
forwword(FALSE, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user