fix variable assignment order

Signed-off-by: Mattias Andrée <maandree@operamail.com>
cleanup

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix delete key regression

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix up and down arrow jump bug

Signed-off-by: Mattias Andrée <maandree@operamail.com>
duplicate instruction

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix jump bug on text insert

Signed-off-by: Mattias Andrée <maandree@operamail.com>