summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-09-11 18:08:48 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-09-11 18:08:48 +0000
commit518ca404ae0a296f8bee3306ea9f52b7280a2b94 (patch)
treeb925ca010a8d461f6b7479967344e48231278d2a /bin
parent41251d99f1d46ce908d36ca9d0fa2434f3ca0a4d (diff)
Process window size changes after xread(). [change window size]
echo $COLUMS $LINES; will now print the new sizes immediately, instead of after the second echo. ok millert@
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/edit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/ksh/edit.c b/bin/ksh/edit.c
index c4bac67a77d..5604f01cc7b 100644
--- a/bin/ksh/edit.c
+++ b/bin/ksh/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.29 2005/04/13 02:33:08 deraadt Exp $ */
+/* $OpenBSD: edit.c,v 1.30 2005/09/11 18:08:47 otto Exp $ */
/*
* Command line editing - common code
@@ -92,9 +92,6 @@ x_read(char *buf, size_t len)
{
int i;
- if (got_sigwinch)
- check_sigwinch();
-
x_mode(true);
#ifdef EMACS
if (Flag(FEMACS) || Flag(FGMACS))
@@ -108,6 +105,7 @@ x_read(char *buf, size_t len)
#endif
i = -1; /* internal error */
x_mode(false);
+ check_sigwinch();
return i;
}