Fix Javascript not working regression in Function list since 2016
due to 2 commits:5d438aa
fb189fa
This commit is contained in:
parent
01cfe5d083
commit
985fa654b9
@ -324,8 +324,8 @@ void FunctionListPanel::reload()
|
||||
Buffer* currentBuf = (*_ppEditView)->getCurrentBuffer();
|
||||
const TCHAR *fn = currentBuf->getFileName();
|
||||
LangType langID = currentBuf->getLangType();
|
||||
if (langID == L_JAVASCRIPT)
|
||||
langID = L_JS;
|
||||
if (langID == L_JS)
|
||||
langID = L_JAVASCRIPT;
|
||||
|
||||
const TCHAR *udln = NULL;
|
||||
if (langID == L_USER)
|
||||
@ -342,27 +342,9 @@ void FunctionListPanel::reload()
|
||||
}
|
||||
|
||||
for (size_t i = 0, len = _foundFuncInfos.size(); i < len; ++i)
|
||||
{
|
||||
// no 2 levels
|
||||
/*
|
||||
bool b = false;
|
||||
if (b)
|
||||
{
|
||||
generic_string entryName = TEXT("");
|
||||
if (!_foundFuncInfos[i]._data2.empty())
|
||||
{
|
||||
entryName = _foundFuncInfos[i]._data2;
|
||||
entryName += TEXT("=>");
|
||||
}
|
||||
entryName += _foundFuncInfos[i]._data;
|
||||
addEntry(NULL, entryName.c_str(), _foundFuncInfos[i]._pos);
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
addEntry(_foundFuncInfos[i]._data2.c_str(), _foundFuncInfos[i]._data.c_str(), _foundFuncInfos[i]._pos);
|
||||
}
|
||||
}
|
||||
|
||||
HTREEITEM root = _treeView.getRoot();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user