cpp: Fixed issue with inserting the first assist item

git-svn-id: svn://ultimatepp.org/upp/trunk@8510 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-06-05 06:43:09 +00:00
parent 91f1375876
commit d9ede75b81

View file

@ -642,7 +642,7 @@ void AssistEditor::AssistInsert()
{
if(assist.IsCursor()) {
int ii = assist.GetCursor();
if(ii <= 0 || ii >= assist_item_ndx.GetCount())
if(ii < 0 || ii >= assist_item_ndx.GetCount())
return;
ii = assist_item_ndx[ii];
if(ii >= assist_item.GetCount()) {