Mercurial > hg > octave-terminal
changeset 1306:f92615001614
[project @ 1995-05-15 19:54:29 by jwe]
author | jwe |
---|---|
date | Mon, 15 May 1995 19:54:29 +0000 |
parents | 434cc4304b20 |
children | e357dced2de7 |
files | src/pager.cc |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pager.cc +++ b/src/pager.cc @@ -50,7 +50,7 @@ static int write_to_diary_file = 0; // The name of the current diary file. -static char *diary_file = "diary"; +static char *diary_file = 0; // The diary file. static ofstream diary_stream; @@ -202,6 +202,9 @@ DEFINE_ARGV("diary"); + if (! diary_file) + diary_file = strsave ("diary"); + switch (argc) { case 1: