Don't ignore new tab snapshot in WrapMap
if only tab size changed
This commit is contained in:
parent
385d214b47
commit
1e94eb74f4
2 changed files with 11 additions and 7 deletions
|
@ -220,7 +220,7 @@ impl WrapMap {
|
|||
if !self.snapshot.interpolated {
|
||||
let mut to_remove_len = 0;
|
||||
for (tab_snapshot, _) in &self.pending_edits {
|
||||
if tab_snapshot.version() <= self.snapshot.tab_snapshot.version() {
|
||||
if tab_snapshot.version <= self.snapshot.tab_snapshot.version {
|
||||
to_remove_len += 1;
|
||||
} else {
|
||||
break;
|
||||
|
@ -282,7 +282,7 @@ impl WrapMap {
|
|||
let was_interpolated = self.snapshot.interpolated;
|
||||
let mut to_remove_len = 0;
|
||||
for (tab_snapshot, edits) in &self.pending_edits {
|
||||
if tab_snapshot.version() <= self.snapshot.tab_snapshot.version() {
|
||||
if tab_snapshot.version <= self.snapshot.tab_snapshot.version {
|
||||
to_remove_len += 1;
|
||||
} else {
|
||||
let interpolated_edits = self.snapshot.interpolate(tab_snapshot.clone(), &edits);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue