My best guess would be: selecting with the mouse from the left until the (first two?) arabic characters, then extending the selection using the right arrow key while holding shift. Might be that the arrow key skips the cursor to the right side before extending the selection.
I'd bet on “llo” + the right part of the arabic word having been selected with the mouse, then the selection having been extended with the right arrow to encompass the “he”.