diff --git a/cell/view/CellEditorView.js b/cell/view/CellEditorView.js
index 54e4b70cf65afb4d77d91c61e6bc57973379fb7d..61ac36ef8d2d038a6f8bbcdf252238050c858ac8 100644
--- a/cell/view/CellEditorView.js
+++ b/cell/view/CellEditorView.js
@@ -2715,6 +2715,19 @@
 		}
 		this.replaceText(this.beginCompositePos, this.compositeLength, newText);
 		this.compositeLength = newText.length;
+
+		var tmpBegin = this.selectionBegin, tmpEnd = this.selectionEnd;
+
+		this.selectionBegin = this.beginCompositePos;
+		this.selectionEnd = this.beginCompositePos + this.compositeLength;
+		this.setTextStyle('u', Asc.EUnderline.underlineSingle);
+
+		this.selectionBegin = tmpBegin;
+		this.selectionEnd = tmpEnd;
+
+		// Обновляем выделение
+		this._cleanSelection();
+		this._drawSelection();
 	};
 	CellEditor.prototype.End_CompositeInput = function () {
 		var tmpBegin = this.selectionBegin, tmpEnd = this.selectionEnd;