#5601·tmux

select-area corruption with vi-mode and mouse-dragging past last line

Author: schweikertCreated Sep 15, 2026Updated Sep 15, 2026

Issue description

When dragging with the mouse past the last line, the selection suddenly becomes unresponsive and can't be recovered. This seems related to auto-scroll behavior when there is nothing left to scroll to. It only happens with vi-mode selection (set -g mode-keys vi).

Reproduction steps:

  • set -g mode-keys vi
  • set -g mouse on
  • Fill the window with text
  • Mouse-drag on the last line and then move past it downwards
  • Result: the selection doesn't follow the mouse anymore

Required information

Please provide the following information. These are required. Note that bug reports without logs may be ignored or closed without comment.

  • tmux version (tmux -V): tmux 3.5a, but also reproducible with tmux 3.8-dev (head)
  • Platform (uname -sp): Linux (Debian stable)
  • Terminal in use (xterm, rxvt, etc): foot
  • $TERM inside tmux (echo $TERM): tmux-256color
  • $TERM outside tmux (echo $TERM): foot
  • Logs from tmux (tmux kill-server; tmux -vv new): not required I think, but I can provide them