Skip to content
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

stash_group_add_string() doesn't handle default value anymore #3149

Closed
eht16 opened this issue Apr 5, 2022 · 5 comments
Closed

stash_group_add_string() doesn't handle default value anymore #3149

eht16 opened this issue Apr 5, 2022 · 5 comments
Labels

Comments

@eht16
Copy link
Member

eht16 commented Apr 5, 2022

Since some time, stash_group_add_string() does not set the passed default value to the setting any longer if the setting is not found.

This might be related to cf77c8c.

There is a real implication of this:
I noticed crashing Geany when the VTE setting follow_path is true and send_cmd_prefix is not set. This results in vc->send_cmd_prefix being NULL which then leads to crashes when commands are to be executed in the VTE (it should not crash even then, a fix for the VTE issue will follow).

But the root cause here is that it seems that the passed default stash_group_add_string() is ignored.

@kugel-, could you maybe have a look?

@eht16
Copy link
Member Author

eht16 commented Apr 7, 2022

Just noticed, even if send_cmd_prefix is set in the config, its value is not read properly and vc->send_cmd_prefix remains NULL.

@kugel-
Copy link
Member

kugel- commented Apr 7, 2022

So you you think stash_group_add_string is buggy or this issue is only with the send_cmd_prefix pref?

In #3151 the commit be739e2 was identified as first buggy commit, but that doesn't change stash_group_add_string as far as I can tell.

@elextr
Copy link
Member

elextr commented Apr 9, 2022

See possible patch posted to #3151

@eht16
Copy link
Member Author

eht16 commented Apr 9, 2022

So you you think stash_group_add_string is buggy

This was my first guess but it seems wrong.

In #3151 the commit be739e2 was identified as first buggy commit, but that doesn't change stash_group_add_string as far as I can tell.

Yeah, be739e2 is more relevant and the patch in #3151 fixes reading the VTE settings for me.

@eht16
Copy link
Member Author

eht16 commented Apr 9, 2022

Closing this one in favor of #3151.

@eht16 eht16 closed this as completed Apr 9, 2022
@b4n b4n modified the milestone: 1.39/2.0 Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants