diff --git a/Scintilla.NET/Scintilla.cs b/Scintilla.NET/Scintilla.cs index 2ae4c37..8cc827c 100644 --- a/Scintilla.NET/Scintilla.cs +++ b/Scintilla.NET/Scintilla.cs @@ -3358,7 +3358,11 @@ public bool UseRightToLeftReadingLayout exStyle &= ~WinApiHelpers.WS_EX_LAYOUTRTL; } Handle.SetWindowLongPtr(WinApiHelpers.GWL_EXSTYLE, new IntPtr(exStyle)); - DirectMessage(NativeMethods.SCI_GRABFOCUS, new IntPtr(1)); // needs focus to update + + // Workaround Scintilla mirrored rendering issue: + var wrapMode = WrapMode; + WrapMode = wrapMode == WrapMode.None ? WrapMode.Word : WrapMode.None; + WrapMode = wrapMode; } }