Skip to content

Commit

Permalink
Fix print to file crash, see #50
Browse files Browse the repository at this point in the history
  • Loading branch information
taviso committed May 30, 2022
1 parent aa15a26 commit b92ecc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions globalize.lst
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ at_date
encode_date
check_three_numbers
get_integer
need_to_close
1 change: 1 addition & 0 deletions lotdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ extern int reset_undo(int);
extern void full_redisplay();
extern int erase_screen();
extern int invalidate_screen();
extern int16_t need_to_close;

#endif
3 changes: 3 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ int main(int argc, char **argv, char **envp)
// Enable undo by default, you can disable it via -u.
reset_undo(1);

// No need to close the printer driver, it is currently a noop.
need_to_close = false;

while ((opt = getopt(argc, argv, "f:c:k:np:w:hbu")) != -1) {
switch (opt) {
case 'b': banner_printed = false;
Expand Down

0 comments on commit b92ecc6

Please sign in to comment.