AngryGamer
AngryGamer
dupe #5861
@balagansky > Removing these blocks of code seems to avoid the issue, but that alone may not be the right fix: > > ``` > // TCM_SETCURFOCUS is busted on...
I can't investigate this problem due to being unable to replicate. This makes me reliant on your debugging. I'm puzzled by that [code block](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/06db9ee338ac9659b01b960325486a1791b249b0/PowerEditor/src/WinControls/TabBar/TabBar.cpp#L1153) firing because you can visibly see...
I wonder whether SetActiveTab is called before any tabs are loaded and while rowCount==0. I imagine setting an invalid tab would cause memory corruption that may manifest itself later. Another...
I figured out the cause of this problem: non-TCS_BUTTONS tabs no longer utilize CURFOCUS due to incompatibility with WINE, however, TCS_BUTTONS uses CURFOCUS and the "garbage" value will linger when...
> Have you been able to actually reproduce any of this on your end? I was able to replicate the issues by following your instructions. I haven't been able to...
> Use Notepad++ v7.7.1 to reproduce the bug and fix it upon v7.8 source code is the wrong practice. > BTW, I cannot reproduce such bug at all on v7.8....
> @AngryGamer > Curiously, I've got no bug report about it recently. This bug was always quite rare. In v7.8 and v7.8.1 there will be more ways to trigger it....

It's possible to reorder tabs without tab bar using hotkey CTRL+SHIFT+[PageUp/Down](https://en.wikipedia.org/wiki/Page_Up_and_Page_Down_keys)