diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 814571cff..9a39d5c6a 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -798,7 +798,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne) { //Do all the works removeBufferFromView(id, whichOne); - if (nrDocs == 1 && canHideView(currentView())) + if (nrDocs == 1 && canHideView(whichOne)) { //close the view if both visible hideView(whichOne); }