Commit b3cba3c
fix: reset cursor only on new menu, not on refresh cycles
The previous reset (unconditional at _show_menu() entry) wiped the
cursor on every KEY_F(5) refresh timeout because the refresh action
causes _show_menu() to return and be immediately re-called.
Track _menu_current_id = id(current): reset _menu_cursor_pos only
when the menu data object changes (new screen), preserving it across
refresh cycles on the same screen.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e91df3c commit b3cba3c
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
926 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
927 | 933 | | |
928 | 934 | | |
929 | 935 | | |
| |||
0 commit comments