Skip to content

Commit fcfb659

Browse files
committed
Ignore classic history when modern session starts
See troubles found in #3844.
1 parent e9dad2d commit fcfb659

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gmt_init.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -17533,7 +17533,9 @@ int gmt_manage_workflow (struct GMTAPI_CTRL *API, unsigned int mode, char *text)
1753317533
}
1753417534
}
1753517535
}
17536-
if (error) return (error); /* Bail at this point */
17536+
if (error) return (error); /* Bail at this point */
17537+
gmt_reset_history (API->GMT); /* No old classic history shall affect a new modern mode session */
17538+
1753717539
gmt_conf (API->GMT); /* Get the original system defaults */
1753817540
if (!clean_start) gmt_getdefaults (API->GMT, NULL); /* Overload user defaults */
1753917541
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)