[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56176: 28.1.50; csv-align-mode misaligns when display-line-numbers-m
From: |
Lars Ingebrigtsen |
Subject: |
bug#56176: 28.1.50; csv-align-mode misaligns when display-line-numbers-mode is on |
Date: |
Fri, 24 Jun 2022 11:38:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Joost Kremers <joostkremers@fastmail.fm> writes:
> I work with csv files with long lines, which do not fit the window. If I
> activate csv-align-mode and display-line-numbers-mode, then move to the end
> of a
> line (so that the first few columns are not visible anymore), the columns that
> are visible are no longer properly aligned. If I disable
> display-line-numbers-mode, they are propely aligned again.
>
> I could attach some screen shots showing the problem, but I'm not sure
> attachments are allowed here. Let me know if I should.
Attachments are allowed, but I can reproduce the problem without them.
The problem seems to be in the computations in csv--jit-align, which
don't take the line numbers mode area into account. But after poking at
it for a couple of minutes, it's not immediately clear to me what the
algorithm is actually doing, so I've added Stefan to the CCs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no