mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Fix tool tip in document switcher showing the old name issue (after being renamed).
Fix #4910, close #4936
This commit is contained in:
parent
b9b3faf307
commit
94cf9d53ca
@ -234,14 +234,15 @@ void VerticalFileSwitcherListView::setItemIconStatus(BufferID bufferID)
|
|||||||
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)(item.lParam);
|
TaskLstFnStatus *tlfs = (TaskLstFnStatus *)(item.lParam);
|
||||||
if (tlfs->_bufID == bufferID)
|
if (tlfs->_bufID == bufferID)
|
||||||
{
|
{
|
||||||
|
tlfs->_fn = buf->getFullPathName();
|
||||||
item.mask = LVIF_TEXT | LVIF_IMAGE;
|
item.mask = LVIF_TEXT | LVIF_IMAGE;
|
||||||
ListView_SetItem(_hSelf, &item);
|
ListView_SetItem(_hSelf, &item);
|
||||||
|
|
||||||
if (isExtColumn)
|
if (isExtColumn)
|
||||||
{
|
{
|
||||||
ListView_SetItemText(_hSelf, i, 1, (LPTSTR)::PathFindExtension(buf->getFileName()));
|
ListView_SetItemText(_hSelf, i, 1, (LPTSTR)::PathFindExtension(buf->getFileName()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -286,7 +287,7 @@ int VerticalFileSwitcherListView::add(BufferID bufferID, int iView)
|
|||||||
Buffer *buf = static_cast<Buffer *>(bufferID);
|
Buffer *buf = static_cast<Buffer *>(bufferID);
|
||||||
const TCHAR *fileName = buf->getFileName();
|
const TCHAR *fileName = buf->getFileName();
|
||||||
|
|
||||||
TaskLstFnStatus *tl = new TaskLstFnStatus(iView, 0, fileName, 0, (void *)bufferID);
|
TaskLstFnStatus *tl = new TaskLstFnStatus(iView, 0, buf->getFullPathName(), 0, (void *)bufferID);
|
||||||
|
|
||||||
TCHAR fn[MAX_PATH];
|
TCHAR fn[MAX_PATH];
|
||||||
lstrcpy(fn, ::PathFindFileName(fileName));
|
lstrcpy(fn, ::PathFindFileName(fileName));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user