Fix: Find function reports code with a line offset of 1 (#6331)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
tjmgd
2021-12-16 15:39:03 +00:00
committed by GitHub
parent 01770a1574
commit f4ae3a5b7d
@@ -610,7 +610,7 @@ namespace LUAEditor
{
m_resultList[qAssetName].m_assetId = docInfo.m_assetId;
}
entry.m_lineNumber = line;
entry.m_lineNumber = line + 1;
entry.m_lineText = entry.m_lineText.trimmed();
while (index > -1)