# HG changeset patch # User jwe # Date 1171491414 0 # Node ID 48f8af442b8a45159307e1158f48aa2a764042fe # Parent 78a3254741b2127457e2566d42c6b9a0a4c79f64 [project @ 2007-02-14 22:16:53 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-02-14 John W. Eaton + + * input.cc (interactive_input): Check error_state after call to feval. + 2007-02-10 John W. Eaton * oct-stream.cc (octave_stream::rewind): Call seek (0, SEEK_SET) diff --git a/src/input.cc b/src/input.cc --- a/src/input.cc +++ b/src/input.cc @@ -219,7 +219,13 @@ { feval ("drawnow"); + // We set Vdrawnow_requested to false even if there is an error + // in drawnow so that the error doesn't reappear at every prompt. + Vdrawnow_requested = false; + + if (error_state) + return "\n"; } return gnu_readline (s, force_readline);