Bug#1051970: vim: clicking tab character selects next character after tab

2023-09-14 Thread Matthijs van Duin
Small addendum, in case it helps tracking down the issue: quite curiously,
clicking below a tab character on the last line of the buffer still works
correctly, it selects the tab itself.


Bug#1051970: vim: clicking tab character selects next character after tab

2023-09-14 Thread Matthijs van Duin
Source: vim
Version: 2:9.0.1378-2
Severity: normal
X-Debbugs-Cc: matthijsvand...@gmail.com

Dear Maintainer,

Clicking anywhere in a tab character other than its leftmost column
causes the cursor to be placed on the next character after the tab
instead of putting it on the tab character itself.

This is especially obnoxious in selection mode, e.g. say you have some
tab-separated columns of text, e.g.:

abc foo
x   bar

If you now start block-selection mode on the topleft and try to select
the first column of text using the mouse you'll end up also selecting
the "f" of "foo" and "b" of "bar".


This is a regression, it worked correctly in bullseye (vim 8.2.2434).


I only use vim in text mode (xterm mouse) but gvim appears to be
affected in the same way based on some quick testing.


-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

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