mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Prevent from crash in TAB settings
This commit is contained in:
parent
dfeaa578f0
commit
5eee71f493
@ -3316,7 +3316,7 @@ void ScintillaEditView::setTabSettings(Lang *lang)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const NppGUI & nppgui = _pParameter->getNppGUI();
|
const NppGUI & nppgui = _pParameter->getNppGUI();
|
||||||
execute(SCI_SETTABWIDTH, nppgui._tabSize);
|
execute(SCI_SETTABWIDTH, nppgui._tabSize > 0 ? nppgui._tabSize : lang->_tabSize);
|
||||||
execute(SCI_SETUSETABS, !nppgui._tabReplacedBySpace);
|
execute(SCI_SETUSETABS, !nppgui._tabReplacedBySpace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user