mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
[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:
parent
5d900beba2
commit
7cd1965585
@ -295,13 +295,15 @@ const std::vector<size_t> & Buffer::getHeaderLineState(const ScintillaEditView *
|
|||||||
Lang * Buffer::getCurrentLang() const {
|
Lang * Buffer::getCurrentLang() const {
|
||||||
NppParameters *pNppParam = NppParameters::getInstance();
|
NppParameters *pNppParam = NppParameters::getInstance();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
Lang *l = pNppParam->getLangFromIndex(++i);
|
Lang *l = pNppParam->getLangFromIndex(i);
|
||||||
|
++i;
|
||||||
while (l)
|
while (l)
|
||||||
{
|
{
|
||||||
if (l->_langID == _lang)
|
if (l->_langID == _lang)
|
||||||
return l;
|
return l;
|
||||||
|
|
||||||
l = pNppParam->getLangFromIndex(++i);
|
l = pNppParam->getLangFromIndex(i);
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user