diff --git a/src/Cursor.cpp b/src/Cursor.cpp index c641172640..211b8ebacb 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1341,13 +1341,11 @@ int Cursor::niceInsert(docstring const & t, Parse::flags f, bool enter) { MathData ar(buffer()); asArray(t, ar, f); - if (ar.size() == 1 && (enter || selection())) { + if (ar.size() == 1 && (enter || selection())) niceInsert(ar[0]); - return 1; - } else { + else insert(ar); - return ar.size(); - } + return ar.size(); }