commit | b375e1025725410860482d4a6f060be33d9d82a3 | [log] [tgz] |
---|---|---|
author | BalazsJako <this.is.balazs.jako@gmail.com> | Thu Aug 15 10:51:42 2019 +0100 |
committer | GitHub <noreply@github.com> | Thu Aug 15 10:51:42 2019 +0100 |
tree | 0cc6fd6c82d30bb419e1941f4d03ac11369fd6a4 | |
parent | 03737f87cee0a8731b0c168a251941f9e4249cf1 [diff] | |
parent | 5239cea6c8f767f1e9b89a1aa669bba209c2a289 [diff] |
Merge pull request #95 from Melix19/fix_tab_paste_cursor Fix cursor when pasting text with tabs
diff --git a/TextEditor.cpp b/TextEditor.cpp index 1e02a70..94b749b 100644 --- a/TextEditor.cpp +++ b/TextEditor.cpp
@@ -297,7 +297,7 @@ auto d = UTF8CharLength(*aValue); while (d-- > 0 && *aValue != '\0') line.insert(line.begin() + cindex++, Glyph(*aValue++, PaletteIndex::Default)); - ++aWhere.mColumn; + aWhere.mColumn = GetCharacterColumn(aWhere.mLine, cindex); } mTextChanged = true;