From e96c9b151b4a39c89a84090b196c8452afae481c Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 1 Jan 2013 21:02:17 +0000 Subject: [PATCH] =?UTF-8?q?[BUG=5FFIXED]=20(Author:=20Pekka=20P=C3=B6yry)?= =?UTF-8?q?=20Fix=20tab=20display=20bug=20when=20buffer's=20filename=20is?= =?UTF-8?q?=20changed=20or=20buffer=20is=20closed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@998 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 2 ++ PowerEditor/src/NppIO.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index b00790f65..06c998485 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -4450,6 +4450,8 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) if (mask & (BufferChangeDirty|BufferChangeFilename)) { + if(mask & BufferChangeFilename) + command(IDM_VIEW_REFRESHTABAR); checkDocState(); setTitle(); generic_string dir(buffer->getFullPathName()); diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 7d761ad46..4c0432457 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -388,6 +388,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne) _pFileSwitcherPanel->closeItem((int)hiddenBufferID, whichOne); } } + command(IDM_VIEW_REFRESHTABAR); return; }