On Windows 7 SWT 4.3 setSelection doesn't move the caret at end of text
<p>I have the following Text in swt. I'm trying to display in a text widget a specific text and move the caret to the end just in case the user wants to add something.</p>

<p>The problem is that the caret is always <strong>before</strong> last character and not <strong>after</strong></p>

<pre><code>    text = new Text(group, SWT.BORDER);
    text.addListener(SWT.KeyDown, e -&gt; {
        if (e.keyCode == SWT.ARROW_UP) {
            String prevText = "some text from history";
            text.setText(prevText);
            text.setSelection(prevText.length());
            //This doesn't work either: caret is stil before last character
            //text.setSelection(prevText.length()+10);
        }
    });
</code></pre>

<p>More details:</p>

<pre><code>Windows7
swt-4.3
SWT-OS: win32
SWT-WS: win32
SWT-Arch: x86_64
</code></pre>

<p>On an OSX it behaves properly.</p>