[BUG_FIXED] Fix tab settings bug in Normal text.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1128 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2013-10-02 07:14:46 +00:00
parent 5d900beba2
commit 7cd1965585
1 changed files with 4 additions and 2 deletions

View File

@ -295,13 +295,15 @@ const std::vector<size_t> & Buffer::getHeaderLineState(const ScintillaEditView *
Lang * Buffer::getCurrentLang() const {
NppParameters *pNppParam = NppParameters::getInstance();
int i = 0;
Lang *l = pNppParam->getLangFromIndex(++i);
Lang *l = pNppParam->getLangFromIndex(i);
++i;
while (l)
{
if (l->_langID == _lang)
return l;
l = pNppParam->getLangFromIndex(++i);
l = pNppParam->getLangFromIndex(i);
++i;
}
return NULL;
};