[BUG_FIXED] (Author: Andreas Jonsson) A regression fix for "Begin/End select" feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1121 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2013-09-17 20:22:32 +00:00
parent 419fd585d4
commit 82281c7d2d
1 changed files with 2 additions and 4 deletions

View File

@ -321,10 +321,8 @@ void Notepad_plus::command(int id)
case IDM_EDIT_BEGINENDSELECT:
{
if(_pEditView->beginEndSelectedIsStarted())
::CheckMenuItem(_mainMenuHandle, IDM_EDIT_BEGINENDSELECT, MF_BYCOMMAND | MF_UNCHECKED);
else
::CheckMenuItem(_mainMenuHandle, IDM_EDIT_BEGINENDSELECT, MF_BYCOMMAND | MF_CHECKED);
::CheckMenuItem(_mainMenuHandle, IDM_EDIT_BEGINENDSELECT, MF_BYCOMMAND | _pEditView->beginEndSelectedIsStarted()?MF_UNCHECKED:MF_CHECKED);
_pEditView->beginOrEndSelect();
}
break;