CtrlLine: LineEdit: fixed PasteInColumn at the end of line #856

git-svn-id: svn://ultimatepp.org/upp/trunk@7683 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-13 17:39:34 +00:00
parent cfe03ec59a
commit a26c7629a2

View file

@ -150,7 +150,7 @@ void LineEdit::PasteColumn(const WString& text)
for(int i = 0; i < cl.GetCount(); i++) {
int li = p.y + i;
if(li < line.GetCount()) {
int l = GetGPos(i + p.y, min(GetLineLength(li), p.x));
int l = GetGPos(i + p.y, p.x);
pos = l + Insert(l, cl[i]);
}
else {