FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

On Windows, "pause -1" does not work if it is the 1st command in a sc… · gnuplot/gnuplot-old@cfee50c · GitHub

Repository navigation

Commit cfee50c

Browse files
mikulik
committed
On Windows, "pause -1" does not work if it is the 1st command in a script.
1 parent bcd1fe0 commit cfee50c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎ChangeLog‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2007-05-22 Petr Mikulik <mikulik@physics.muni.cz>
2+
3+
* src/command.c (pause_command): On Windows, "pause -1" does not work
4+
if it is the 1st command in a script. Bug #1713350.
5+
16
2007-05-22 Matthias Habl <mhabl@users.sourceforge.net>
27

38
* docs/gnuplot.doc: Clarify that all x and y axis labels may be

‎src/command.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: command.c,v 1.153 2007/05/14 06:09:14 tlecomte Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: command.c,v 1.154 2007/05/22 20:39:16 mikulik Exp $"); }
33
#endif
44

55
/* GNUPLOT - command.c */
@@ -1090,7 +1090,7 @@ pause_command()
10901090
}
10911091
if (sleep_time < 0) {
10921092
#ifdef _Windows
1093-
if (!graphwin.hWndGraph) {
1093+
if (paused_for_mouse && !graphwin.hWndGraph) {
10941094
if (interactive) { /* cannot wait for Enter in a non-interactive session without the graph window */
10951095
char tmp[512];
10961096
fgets(tmp, 512, stdin); /* graphical window not yet initialized, wait for any key here */

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL