I have a simple editor and I will show the current state of the text at the cursor position (e.g. show the right font and fontsize, set thet state of a bold/us/italic button). When I position the cursor somewhere in the text, I use GetSel to get the position of the cursor. However, this will return the previous position, not the current one? What have I done wrong?