mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-23 17:46:23 -05:00
Always refresh window on execution if buffer is displayed, not only on errors.
Insure dot is correct on final !return.
This commit is contained in:
parent
8555d07437
commit
eff9b64f1d
17
exec.c
17
exec.c
@ -892,8 +892,10 @@ static int dobuf( buffer_p bp) {
|
||||
lp = returnto->caller ;
|
||||
returnto = returnto->next ;
|
||||
free( cp) ;
|
||||
} else
|
||||
} else {
|
||||
lp = lp->l_fp ;
|
||||
done = TRUE ;
|
||||
}
|
||||
}
|
||||
|
||||
break ;
|
||||
@ -908,9 +910,8 @@ static int dobuf( buffer_p bp) {
|
||||
break ;
|
||||
}
|
||||
|
||||
/* check for a command error */
|
||||
if( status != TRUE) {
|
||||
/* look if buffer is showing */
|
||||
/* refresh window if buffer is displayed */
|
||||
if( bp->b_nwnd) {
|
||||
for( window_p wp = wheadp ; wp != NULL ; wp = wp->w_wndp) {
|
||||
if( wp->w_bufp == bp) {
|
||||
/* and point it */
|
||||
@ -919,11 +920,11 @@ static int dobuf( buffer_p bp) {
|
||||
wp->w_flag |= WFHARD ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* in any case set the buffer . */
|
||||
bp->b_dotp = lp ;
|
||||
bp->b_doto = 0 ;
|
||||
}
|
||||
/* in any case set the buffer . */
|
||||
bp->b_dotp = lp ;
|
||||
bp->b_doto = 0 ;
|
||||
|
||||
freelist( (list_p) returnto) ;
|
||||
freelist( (list_p) whlist) ;
|
||||
|
Loading…
Reference in New Issue
Block a user