Code improvement
diff --git a/TextEditor.cpp b/TextEditor.cpp
index 273e8c5..6fa27bd 100644
--- a/TextEditor.cpp
+++ b/TextEditor.cpp
@@ -298,14 +298,8 @@
 			auto& line = mLines[aWhere.mLine];
 			auto d = UTF8CharLength(*aValue);
 			while (d-- > 0 && *aValue != '\0')
-				line.insert(line.begin() + cindex++, Glyph(*aValue, PaletteIndex::Default));
-
-			if (*aValue == '\t')
-				aWhere.mColumn += mTabSize;
-			else
-				++aWhere.mColumn;
-
-			++aValue;
+				line.insert(line.begin() + cindex++, Glyph(*aValue++, PaletteIndex::Default));
+			aWhere.mColumn = GetCharacterColumn(aWhere.mLine, cindex);
 		}
 
 		mTextChanged = true;