diff options
Diffstat (limited to '')
| -rw-r--r-- | rsnix/src/vt.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rsnix/src/vt.rs b/rsnix/src/vt.rs index 88129f2..59378f3 100644 --- a/rsnix/src/vt.rs +++ b/rsnix/src/vt.rs | |||
| @@ -432,9 +432,7 @@ fn scroll_up() { | |||
| 432 | // appears promptly. | 432 | // appears promptly. |
| 433 | const TICK_LIMIT: u16 = 4; | 433 | const TICK_LIMIT: u16 = 4; |
| 434 | let now = crate::interrupts::TICKS.load(core::sync::atomic::Ordering::Relaxed); | 434 | let now = crate::interrupts::TICKS.load(core::sync::atomic::Ordering::Relaxed); |
| 435 | if PENDING_SCROLLS >= SCROLL_BATCH | 435 | if PENDING_SCROLLS >= SCROLL_BATCH || now.wrapping_sub(LAST_SYNC_TICK) > TICK_LIMIT { |
| 436 | || now.wrapping_sub(LAST_SYNC_TICK) > TICK_LIMIT | ||
| 437 | { | ||
| 438 | sync_scroll(); | 436 | sync_scroll(); |
| 439 | } | 437 | } |
| 440 | } | 438 | } |
