Skip to content

crash when zooming out #210

@4goettma

Description

@4goettma

Version

$> hwatch --version
hwatch 0.3.19
$> uname -a
Linux x220 6.18.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 18 Jan 2026 00:34:07 +0000 x86_64 GNU/Linux

Reproduction

  1. use e.g. Terminator as terminal emulator
  2. hwatch echo "Hello World"
  3. Press Ctrl + - several times (7 times on my configuration) to decrease font size / increase character fitting each line
  4. hwatch crashes with exit code 101 and output
thread 'main' (440848) panicked at /home/<username>/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.28.0/src/buffer/buffer.rs:385:21:
index out of bounds: the len is 65535 but the index is 65535
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This error should be caught somehow and not crash the main process.
Does it make sense to open an issue at github.com/ratatui/ratatui?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions