Fix more compile warnings in TextEditor

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>