[BUG_FIXED] Make "Text Direction RTL" command and "Text Direction LTR" command work without reloading file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1302 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
724586149a
commit
134920648d
@ -2386,8 +2386,11 @@ void Notepad_plus::command(int id)
|
|||||||
long exStyle = ::GetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE);
|
long exStyle = ::GetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE);
|
||||||
exStyle = (id == IDM_EDIT_RTL)?exStyle|WS_EX_LAYOUTRTL:exStyle&(~WS_EX_LAYOUTRTL);
|
exStyle = (id == IDM_EDIT_RTL)?exStyle|WS_EX_LAYOUTRTL:exStyle&(~WS_EX_LAYOUTRTL);
|
||||||
::SetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE, exStyle);
|
::SetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE, exStyle);
|
||||||
BufferID buf = _pEditView->getCurrentBufferID();
|
|
||||||
doReload(buf, buf->isDirty());
|
// Wrap then !wrap to fix problem of mirror characters
|
||||||
|
bool isWraped = _pEditView->isWrap();
|
||||||
|
_pEditView->wrap(!isWraped);
|
||||||
|
_pEditView->wrap(isWraped);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
<GUIConfig name="URL">2</GUIConfig>
|
<GUIConfig name="URL">2</GUIConfig>
|
||||||
<GUIConfig name="globalOverride" fg="no" bg="no" font="no" fontSize="no" bold="no" italic="no" underline="no" />
|
<GUIConfig name="globalOverride" fg="no" bg="no" font="no" fontSize="no" bold="no" italic="no" underline="no" />
|
||||||
<GUIConfig name="auto-completion" autoCAction="3" triggerFromNbChar="1" funcParams="yes" />
|
<GUIConfig name="auto-completion" autoCAction="3" triggerFromNbChar="1" funcParams="yes" />
|
||||||
|
<GUIConfig name="auto-insert" parentheses="yes" brackets="yes" curlyBrackets="yes" quotes="no" doubleQuotes="yes" htmlXmlTag="no" />
|
||||||
<GUIConfig name="multiInst" setting="0" />
|
<GUIConfig name="multiInst" setting="0" />
|
||||||
<GUIConfig name="sessionExt"></GUIConfig>
|
<GUIConfig name="sessionExt"></GUIConfig>
|
||||||
</GUIConfigs>
|
</GUIConfigs>
|
||||||
|
Loading…
Reference in New Issue
Block a user