Tweak getCaretPos(): make "++pos" more visible