Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent line and column numbering #3272

Closed
notorand-it opened this issue May 15, 2024 · 0 comments
Closed

Inconsistent line and column numbering #3272

notorand-it opened this issue May 15, 2024 · 0 comments
Labels
C-bug Category: bug - something isn't working as it's supposed to
Milestone

Comments

@notorand-it
Copy link

notorand-it commented May 15, 2024

Lapce Version

0.4.0

System information

OS: ArchLinux (up-to-date)
Kernel Version : 6.8.9.zen1-2
Plasma Version : 6.0.4.1-1
KDE Version : 24.02.2-1
Frameworks Version : 6.2.0-1
Qt5 Version : 5.15.13+kde+r7-1
Qt6 Version : 6.7.0-6
Wayland Version : 1.22.0-1
XOrg/Wayland Version : 23.2.6-2
Mesa Version : 1:24.0.7-3
LibVA Version : 2.21.0-1
VDPAU Version : 1.5-2

Describe the bug

Line numbering is 1-based when displayed in the editor panel (left column to the text) while it is 0-based when displayed in the status bar.
Column and character numbering is 0-based in the status bar.
Consistent numbering is highly desired.
1-based numbering is the "de facto" standard across all editors.
I think this is because most compilers, interpreters and other tools all provide diagnostics with 1-based line numbering.

Additional information

SHOT-20240515-092816-CEST

@notorand-it notorand-it added the C-bug Category: bug - something isn't working as it's supposed to label May 15, 2024
@notorand-it notorand-it changed the title Column, line and char number are off by one Inconsistent line and column numbering May 15, 2024
@panekj panekj closed this as completed in 6b5f008 Jun 3, 2024
@panekj panekj added this to the Next Release milestone Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug - something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

2 participants