PuQ wants to merge 1 commit from /u/puq/gnuplot/ to master, 2025-11-02
Version: 6.0.3/6.1([e28e18])
When no last plot exists, show plot command will output an empty string as the last plot command, and the add2history option will add an empty line to the history file.
This patch adds a check to handle the empty last plot command. It provides a clearer message, and prevents the empty line from being added to the history file.
Before this patch:
gnuplot> show plot
last plot command was:
gnuplot> show plot add
last plot command was:
gnuplot> history
1 show plot
2 show plot add
3
After:
gnuplot> show plot
no previous plot
gnuplot> show plot add
no previous plot
gnuplot> history
1 show plot
2 show plot add
| Commit | Date | |
|---|---|---|
|
[161770]
(improve-show-plot)
by
improve `show plot` behavior when there is no previous plot when no last plot exists, `show plot` command will output an empty Before this patch: After: |
2025-11-02 11:38:48 | Tree |