Package: tmux
Version: 3.4-1
Severity: minor

Dear Maintainer,

The mode-keys option is no longer being set to vi based on the EDITOR environment variable.

Steps to reproduce:

1. Set EDITOR environment variable to /usr/bin/vi and set export flag
2. Start tmux
3. Type Enter a few times to get some lines in the terminal
4. Type Ctrl-[ to enter copy mode
5. Type k to nagivate up
6. Observe that the cursor does not move

When I explicitly set mode-keys (Ctrl-b followed by ":set mode-keys vi"), navigation with h, j, k, and l works.

I can also reproduce this with version 3.3a-5 (current version in testing).

According to the man page, tmux automatically sets the mode-keys option to vi when the user's preferred editor is vi:

> mode-keys [vi | emacs]
> Use vi or emacs-style key bindings in copy mode. The default is emacs, unless VISUAL or EDITOR contains ‘vi’.

Philip Chung

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tmux depends on:
ii  libc6                2.37-15
ii  libevent-core-2.1-7  2.1.12-stable-8
ii  libsystemd0          255.3-2
ii  libtinfo6            6.4+20240113-1
ii  libutempter0         1.2.1-3

tmux recommends no packages.

tmux suggests no packages.

-- no debconf information

Reply via email to