I have created a button which runs "go tablock=lock,toggle".
The button status itself (showing whether tablock is enabled or disabled) does not refresh properly and only shows tablock status correctly when focus is moved away from the tab in the source file display and then returned.
To test:
- Open dual file display lister
- Create button "TabLock" running "go tablock=lock,toggle"
- In one file display lock the current tab using the button.
The tab is now locked but the button has not changed to indicate it is locked. - Navigate to the other file display then navigate back to the file display with the locked tab.
The TabLock button now correctly indicates that the tab is locked. - Now unlock the tab using the button
The TabLock button is still showing the tab as being locked even though it isn't. - Again navigate away from and back to the file display - the TabLock button will now correctly show tablock status
It strikes me that once the command from the button completes the status which the button relates to (in this case whether the tab is locked or not) should be reread and the button updated.
For reference, I have a similar button for toggling the Flat View (using "set flatview=mixednofolders,toggle") and the button correctly indicates the toggle state.