changing cursor position highlights preview region