Repository navigation
Commit fd7ea2a
committed
fix: preserve cursor position in question-answer mode
Only reset the composer when the active pending question changes.
Previously the effect depended on the whole pending progress object, so
editing the answer retriggered the effect and forced the cursor to the
end on every keystroke. That broke left/right arrow movement and
click-to-reposition in question-answer mode.
Also keeps the earlier Alt+↑ / Alt+↓ keyboard navigation improvement.
Fixes pingdotgg#5281 parent 028fd42 commit fd7ea2a
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
949 | 954 | | |
950 | 955 | | |
951 | 956 | | |
| |||
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
961 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
962 | 971 | | |
963 | 972 | | |
964 | 973 | | |
| |||
0 commit comments