hl-line-mode (and similar) bumps BUF_MODIFF via text property changes on every cursor movement. The else-if structure caused the modiff branch to fire (skipping ValueChanged correctly) but also blocked the cursor-move branch (SelectedTextChanged). Fix: use textDidChange flag to decouple the two branches. ValueChanged and SelectedTextChanged remain mutually exclusive for real edits, but SelectedTextChanged now fires when only text properties changed.
12 KiB
12 KiB