Skip to content

Commit 97bfe88

Browse files
Ignore classic history when modern session starts (#3851) (#3852)
See troubles found in #3844. Co-authored-by: Paul Wessel <[email protected]>
1 parent 9d85fce commit 97bfe88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gmt_init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17516,7 +17516,9 @@ int gmt_manage_workflow (struct GMTAPI_CTRL *API, unsigned int mode, char *text)
1751617516
}
1751717517
}
1751817518
}
17519-
if (error) return (error); /* Bail at this point */
17519+
if (error) return (error); /* Bail at this point */
17520+
gmt_reset_history (API->GMT); /* No old classic history shall affect a new modern mode session */
17521+
1752017522
gmt_conf (API->GMT); /* Get the original system defaults */
1752117523
if (!clean_start) gmt_getdefaults (API->GMT, NULL); /* Overload user defaults */
1752217524
snprintf (dir, PATH_MAX, "%s/%s", API->gwf_dir, GMT_SETTINGS_FILE); /* Reuse dir string for saving gmt.conf to this dir */

0 commit comments

Comments
 (0)