You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With k, select a tile with at least 3 items listed in the sidebar (floors/walls included)
Search and narrow down the list to under 3 items (e.g. s, beer, Enter)
Navigate away from this tile with a key that has an ASCII representation (<, >, or 1-9 - not an arrow key), or with F1-F8 hotkeys (edit: the crash with hotkeys seems to occur when they are used in step 3, followed by arrow keys in step 4)
Navigate to an unrevealed tile (or maybe a tile with fewer items than in step 2?) with the arrow keys (or via an announcement, etc.)
Step 4 usually crashes because the search state isn't cleared in step 3 due to the check added in 87b1524.
The logic in one of these places should probably change:
Reported by Fleeting Flames (via Kitfox Discord)
To reproduce:
k
, select a tile with at least 3 items listed in the sidebar (floors/walls included)s
,beer
,Enter
)<
,>
, or1-9
- not an arrow key), or with F1-F8 hotkeys (edit: the crash with hotkeys seems to occur when they are used in step 3, followed by arrow keys in step 4)or via an announcement,etc.)Step 4 usually crashes because the search state isn't cleared in step 3 due to the check added in 87b1524.
The logic in one of these places should probably change:
dfhack/plugins/search.cpp
Line 1956 in a723249
dfhack/plugins/search.cpp
Line 121 in a723249
We only need to intercept ASCII keys when the search field is active (step 2).
Note that changing the behavior of
cursor_key_pressed
may also affect the behavior ofsearch_generic
, so the proper fix here might be complicated:dfhack/plugins/search.cpp
Line 252 in a723249
The text was updated successfully, but these errors were encountered: