Changing argument to wezterm.action.Search
has no effect when argument is an empty string
#6019
Labels
bug
Something isn't working
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20240812-215703-30345b36
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When updating my config to switch between
wezterm.action.Search({ CaseInSensitiveString = "" })
andwezterm.action.Search({ CaseSensitiveString = "" })
, the change is not automatically applied. It seems like this is because of the empty string argument. If I change the empty string to anything else, e.g. a space" "
, then the config change takes effect.To Reproduce
ignore-case
ignore-case
" "
case-sensitive
Configuration
Expected Behavior
The change should take effect regardless of whether the string is empty or not
Logs
Nothing was logged
Anything else?
Here's a video demonstrating the issue:
Screen.Recording.2024-08-23.at.10.14.47.AM.mov
The text was updated successfully, but these errors were encountered: