Skip to content

Commit

Permalink
more readable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Dec 13, 2023
1 parent 306108d commit c359c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/session_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def should_notify_did_close(self) -> bool:

def on_text_changed_async(self, view: sublime.View, change_count: int,
changes: Iterable[sublime.TextChange]) -> None:
if self._last_synced_version >= change_count:
if change_count <= self._last_synced_version:
return
self._last_text_change_time = time.time()
last_change = list(changes)[-1]
Expand Down

0 comments on commit c359c67

Please sign in to comment.