Skip to content

Commit

Permalink
Ignore classic history when modern session starts (#3851) (#3852)
Browse files Browse the repository at this point in the history
See troubles found in #3844.

Co-authored-by: Paul Wessel <[email protected]>
  • Loading branch information
github-actions[bot] and PaulWessel authored Aug 6, 2020
1 parent 9d85fce commit 97bfe88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -17516,7 +17516,9 @@ int gmt_manage_workflow (struct GMTAPI_CTRL *API, unsigned int mode, char *text)
}
}
}
if (error) return (error); /* Bail at this point */
if (error) return (error); /* Bail at this point */
gmt_reset_history (API->GMT); /* No old classic history shall affect a new modern mode session */

gmt_conf (API->GMT); /* Get the original system defaults */
if (!clean_start) gmt_getdefaults (API->GMT, NULL); /* Overload user defaults */
snprintf (dir, PATH_MAX, "%s/%s", API->gwf_dir, GMT_SETTINGS_FILE); /* Reuse dir string for saving gmt.conf to this dir */
Expand Down

0 comments on commit 97bfe88

Please sign in to comment.