ide: gdb issues

git-svn-id: svn://ultimatepp.org/upp/trunk@9089 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-10-27 06:51:53 +00:00
parent d5f7082d16
commit 6bcade83e3
6 changed files with 19 additions and 14 deletions

View file

@ -675,14 +675,13 @@ WString CodeEditor::GetI()
{
int l, h;
WString ft;
if(GetSelection(l, h) || GetWordPos(GetCursor(), l, h)) {
if((GetSelection(l, h) || GetWordPos(GetCursor(), l, h)) && h - l < 60)
while(l < h) {
int c = GetChar(l++);
if(c == '\n')
break;
ft.Cat(c);
}
}
return ft;
}