-
Notifications
You must be signed in to change notification settings - Fork 301
Tabline says dirty after undolevels = 0 #624
Comments
Nice catch... I've seen a bit of flakiness around the dirty indicator so perhaps this is related. I think right now we are using the 'b:changedtick' variable - perhaps we need to switch to use '&modified'? |
right because b:changedtick will change even if you type and then undo like wise undo redo (assuming you saved after a change)
so checking &modified should give us the correct answer each time, I just tested it and it and seems correct
|
Cool, that does seem what we want! To implement this, right now, the In addition, we don't send up the |
If one would modify a buffer then undo it, instead of changing from isDirty to not dirty (tabline with the little circle) it would remain dirty because ticks update even when undoing... Therefore check for modified instead. This would have caused furthur issues whenever we implement requesting not close on dirty. Issue(s) : onivim#624
If one would modify a buffer then undo it, instead of changing from isDirty to not dirty (tabline with the little circle) it would remain dirty because ticks update even when undoing... Therefore check for modified instead. This would have caused furthur issues whenever we implement requesting not close on dirty. Issue(s) : onivim#624
If one would modify a buffer then undo it, instead of changing from isDirty to not dirty (tabline with the little circle) it would remain dirty because ticks update even when undoing... Therefore check for modified instead. This would have caused furthur issues whenever we implement requesting not close on dirty. Issue(s) : onivim#624
If one would modify a buffer then undo it, instead of changing from isDirty to not dirty (tabline with the little circle) it would remain dirty because ticks update even when undoing... Therefore check for modified instead. This would have caused furthur issues whenever we implement requesting not close on dirty. Issue(s) : onivim#624
…scrollbar on overflow (#626) * Fix tabs not changedTick instead of modified If one would modify a buffer then undo it, instead of changing from isDirty to not dirty (tabline with the little circle) it would remain dirty because ticks update even when undoing... Therefore check for modified instead. This would have caused furthur issues whenever we implement requesting not close on dirty. Issue(s) : #624 * Added back in version, change modified to boolean * Don't show hidden/unlisted buffers in tabline * Super simple scrollbar implementation for tabs * Fix linting
Just tried out the latest changes - works great! The behavior of the dirty flag is working as I'd expect it now 😄 Thanks! |
Since this is closed now, @cyansprite , you should be able to submit the solution @ bountysource. https://www.bountysource.com/issues/48329508-tabline-says-dirty-after-undolevels-0 |
Vim help:
So you can change the buffer, but the tab icon is still dirty.
I'm not sure what we need to detect in order to update the tab state, I can do some research on this.
The text was updated successfully, but these errors were encountered: