Skip to content
Myr

🐛 Fix segfault when execute action is triggered

Before adoption: this commit came in with the history the project adopted, so no landing records it.

...before there's anything to selected. We ignore the keypress in this case, as doesn't make sense. Fixes #638

authored by Mark Stosberg · committed by Daniel Eklöf · parent 8c9e76d · Browse files · 2 files+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−2 removed

  • other:+6 added−2 removed

2 files+6 added−2 removed

modified:CHANGELOG.md+3 added-1 removed
116 unmodified lines
117* Empty window being displayed despite `--no-run-if-empty` being used.118* Fix border width and scaling for mixed-DPI environments ([#595][595])119* Some icons not found on FreeBSD (`/usr/local/share/pixmaps` not120 searched) ([#622][622])121* Segfault when "execute" action is pressed before there's any item in the122 list. ([#638][638])123124[507]: https://codeberg.org/dnkl/fuzzel/issues/507125[551]: https://codeberg.org/dnkl/fuzzel/issues/551126[313]: https://codeberg.org/dnkl/fuzzel/issues/313127[586]: https://codeberg.org/dnkl/fuzzel/issues/586128[595]: https://codeberg.org/dnkl/fuzzel/issues/595129[622]: https://codeberg.org/dnkl/fuzzel/issues/622130[638]: https://codeberg.org/dnkl/fuzzel/issues/638131129132### Security133### Contributors134135 * dnkl
913 unmodified lines
modified:wayland.c+3 added-1 removed
792 unmodified lines
793 paste_from_primary(seat);794 return true;795796 case BIND_ACTION_MATCHES_EXECUTE:797 /* Ignore execute action until there's at least one item in the list */798 if (matches_get_total_count(wayl->matches) > 0)797 execute_selected(seat, false, -1);799 execute_selected(seat, false, -1);800 return true;801802 case BIND_ACTION_MATCHES_EXECUTE_OR_NEXT:803 if (matches_get_total_count(wayl->matches) == 1)
2263 unmodified lines