treat -1 as the last position in wxTextCtrl::SetInsertionPoint