mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 11:35:35 +03:00
Gh-405 Prevent changing state lswhen dirty status did not change
This commit is contained in:
parent
7d3df451ed
commit
802f6e9112
@ -31,6 +31,11 @@ class MainWindowTransformer: Reducer {
|
||||
state.currentBuffer = buffer
|
||||
|
||||
case let .setDirtyStatus(status):
|
||||
// When I gt or w around, we change tab somehow... Dunno why...
|
||||
if status == pair.state.payload.isDirty {
|
||||
return pair
|
||||
}
|
||||
|
||||
state.isDirty = status
|
||||
|
||||
// if we scroll for reverse search we get scroll and set cursor event
|
||||
|
Loading…
Reference in New Issue
Block a user