mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-22 09:27:55 +02:00
[BUG_FIXED] Fix the crash problem while the separator shortcut (if assigned) is triggered.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@161 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
9c1b242370
commit
a80ee0d2fa
@ -75,6 +75,7 @@ public:
|
|||||||
|
|
||||||
void runPluginCommand(size_t i) {
|
void runPluginCommand(size_t i) {
|
||||||
if (i < _pluginsCommands.size())
|
if (i < _pluginsCommands.size())
|
||||||
|
if (_pluginsCommands[i]._pFunc != NULL)
|
||||||
_pluginsCommands[i]._pFunc();
|
_pluginsCommands[i]._pFunc();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3684,15 +3684,7 @@ void Notepad_plus::command(int id)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
case IDM_SETTING_HISTORY_DONT_CHECK :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._checkHistoryFiles = !nppgui._checkHistoryFiles;
|
|
||||||
checkMenuItem(IDM_SETTING_HISTORY_DONT_CHECK, !nppgui._checkHistoryFiles);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
case IDM_SETTING_FILEASSOCIATION_DLG :
|
case IDM_SETTING_FILEASSOCIATION_DLG :
|
||||||
{
|
{
|
||||||
RegExtDlg regExtDlg;
|
RegExtDlg regExtDlg;
|
||||||
@ -3710,43 +3702,7 @@ void Notepad_plus::command(int id)
|
|||||||
shortcutMapper.destroy();
|
shortcutMapper.destroy();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
case IDM_SETTING_FILE_AUTODETECTION_ENABLE :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._fileAutoDetection = cdEnabled;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case IDM_SETTING_FILE_AUTODETECTION_DISABLE :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._fileAutoDetection = cdDisabled;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case IDM_SETTING_FILE_AUTODETECTION_ENABLESILENTLY :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._fileAutoDetection = cdAutoUpdate;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case IDM_SETTING_TRAYICON :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._isMinimizedToTray = !nppgui._isMinimizedToTray;
|
|
||||||
checkMenuItem(IDM_SETTING_TRAYICON, nppgui._isMinimizedToTray);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case IDM_SETTING_REMEMBER_LAST_SESSION :
|
|
||||||
{
|
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
|
||||||
nppgui._rememberLastSession = !nppgui._rememberLastSession;
|
|
||||||
checkMenuItem(IDM_SETTING_REMEMBER_LAST_SESSION, nppgui._rememberLastSession);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
case IDM_SETTING_PREFERECE :
|
case IDM_SETTING_PREFERECE :
|
||||||
{
|
{
|
||||||
bool isFirstTime = !_preference.isCreated();
|
bool isFirstTime = !_preference.isCreated();
|
||||||
@ -4125,23 +4081,7 @@ void Notepad_plus::command(int id)
|
|||||||
//changeDlgLang(_windowsDlg.getHSelf(), "Window");
|
//changeDlgLang(_windowsDlg.getHSelf(), "Window");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/*
|
|
||||||
case IDC_KEY_HOME :
|
|
||||||
_pEditView->execute(SCI_VCHOMEWRAP);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case IDC_KEY_END :
|
|
||||||
_pEditView->execute(SCI_LINEENDWRAP);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case IDC_KEY_SELECT_2_HOME :
|
|
||||||
_pEditView->execute(SCI_VCHOMEWRAPEXTEND);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case IDC_KEY_SELECT_2_END :
|
|
||||||
_pEditView->execute(SCI_LINEENDWRAPEXTEND);
|
|
||||||
break;
|
|
||||||
*/
|
|
||||||
default :
|
default :
|
||||||
if (id > IDM_FILE_EXIT && id < (IDM_FILE_EXIT + _lastRecentFileList.getMaxNbLRF() + 1))
|
if (id > IDM_FILE_EXIT && id < (IDM_FILE_EXIT + _lastRecentFileList.getMaxNbLRF() + 1))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user