-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link-parser fixes #1536
link-parser fixes #1536
Conversation
The test and debug parse options defaults were incorrectly recorded when set by link-parser's arguments. The program crashes upon command completion of !dialect= if the dialect variable differs from the default. Fix this by setting them to a static empty string.
The printouts for verbosity level D_USER_FILES are to be done exactly at this verbosity.
@@ -83,10 +83,11 @@ void find_history_filepath(const char *dictname, const char *argv0, | |||
prt_error("Warning: xdg_get_home(XDG_BD_STATE) failed; " | |||
"input history will not be supported.\n"); | |||
history_file = strdup("dev/null"); | |||
return; | |||
} | |||
|
|||
history_file = hfile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else
is needed here. I'll put it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 1a4775a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just noted that I had a typo in "dev/null"
(missing initial /
).
EDIT: Fixed in PR #1538.
save_default_opts()
: Bugfix saving string defaultsFix the defaults for the verbosity and string parse-options.
make_dirpath(
: Bugfix dir memory leak on MS Windowslg_readline.c
: At verbosity 4, print the history file location--quite
In addition:
D_USER_FILES
The intention is to show file paths only at this level and not at higher levels.