1
1
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:
Tae Won Ha 2017-03-19 22:05:22 +01:00
parent 7d3df451ed
commit 802f6e9112
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -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