Skip to content

zed cli column index broken on non ascii #43329

@yaroslavyaroslav

Description

@yaroslavyaroslav

Summary

zed /some/path/to/a/file.cpp:line:column opens on a wrong column if file text is non ASCII. With ASCII content offset takes correctly.

Description

Steps to reproduce:

  1. zed /some/path/to/a/файл.cpp:1:10

Expected Behavior:
Zed opens correct file under path on the first line with column offset == 9.

Actual Behavior:
Zed opens correct file under path on the correct line, offset in column will be kinda twice lower than expected (it's 4 when column==10).

Zed Version and System Specs

Zed: v0.213.3 (Zed)
OS: macOS 26.1
Memory: 16 GiB
Architecture: aarch64

If applicable, attach your Zed.log file to this issue.

Test file content:

Докинуть картинки диаграммы в git lfs -- pdf, добавить в docker-ignore.

еще строка



еще одна строка просто длинная.

Metadata

Metadata

Assignees

Labels

.contrib/good first issueIssue suitable for first-time contributorsarea:cliCommand-line interface feedbackfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagenever staleto keep the stalebot awaypriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions