1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fix build without line editors (re: bb4f23e6)

This commit is contained in:
Martijn Dekker 2022-07-24 06:56:29 +02:00
parent 523b7c7017
commit 89d5b8cde1

View file

@ -853,6 +853,7 @@ int ed_read(void *context, int fd, char *buff, int size, int reedit)
{
if(sh.trapnote&(SH_SIGSET|SH_SIGTRAP))
goto done;
#if SHOPT_ESH || SHOPT_VSH
/*
* If sh.winch is set, the number of window columns changed and/or there is a buffered
* job notification. When using a line editor, erase and redraw the command line.
@ -898,6 +899,7 @@ int ed_read(void *context, int fd, char *buff, int size, int reedit)
emacs_redraw(ep->e_emacs);
#endif /* SHOPT_ESH && SHOPT_VSH */
}
#endif /* SHOPT_ESH || SHOPT_VSH */
sh.winch = 0;
/* an interrupt that should be ignored */
errno = 0;