From 9f46e7c4c8266541e7699bde52b1048dff2ece91 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 15 Mar 2014 19:02:23 +0000 Subject: [PATCH] [BUG_FIXED] Fix RTL/LTR command making mirrored text bug. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1201 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/NppCommands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 8e23ab3ad..a0345f918 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -2372,7 +2372,8 @@ void Notepad_plus::command(int id) long exStyle = ::GetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE); exStyle = (id == IDM_EDIT_RTL)?exStyle|WS_EX_LAYOUTRTL:exStyle&(~WS_EX_LAYOUTRTL); ::SetWindowLongPtr(_pEditView->getHSelf(), GWL_EXSTYLE, exStyle); - _pEditView->redraw(); + BufferID buf = _pEditView->getCurrentBufferID(); + doReload(buf, buf->isDirty()); } break;