Fix position instability around highlighted annotation

Depends on PR #783 

By checking only nodes that pass the supplied node filter, the position logic can safely ignore out-of-place cursors near highlighted annotations.