Commit 7bf8b09c authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed issue with positioning of cursor after performing a paste function.

parent 6f4773b8
......@@ -5879,6 +5879,13 @@ CDocument.prototype.Insert_Content = function(SelectedContent, NearPos)
LastPos++;
this.Content[LastPos].Select_All();
}
else if (false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
{
LastPos++;
this.Content[LastPos].Selection.Use = true;
this.Content[LastPos].Selection_SetBegEnd(true, true);
this.Content[LastPos].Selection_SetBegEnd(false, true);
}
this.Selection.Use = true;
this.Selection.StartPos = DstIndex;
......
......@@ -4471,6 +4471,13 @@ CDocumentContent.prototype.Insert_Content = function(Selecte
LastPos++;
this.Content[LastPos].Select_All();
}
else if (false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
{
LastPos++;
this.Content[LastPos].Selection.Use = true;
this.Content[LastPos].Selection_SetBegEnd(true, true);
this.Content[LastPos].Selection_SetBegEnd(false, true);
}
this.Selection.Start = false;
this.Selection.Use = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment