Skip to content

Commit 8bd4208

Browse files
committed
Refresh scintilla handle on document move to other view
#fixes #166
1 parent 26246a2 commit 8bd4208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ void JsonViewDlg::DrawJsonTree()
223223
HTREEITEM rootNode = nullptr;
224224
rootNode = m_hTreeView->InitTree();
225225

226+
// Refresh the view
227+
m_Editor->RefreshViewHandle();
226228
const std::string txtForParsing = m_Editor->GetJsonText();
227229

228230
if (txtForParsing.empty())

0 commit comments

Comments
 (0)