Skip to content

editor::SplitSelectionIntoLines scrolls long file to the end (unlike VSCode) #48812

@hisbvdis

Description

@hisbvdis

Reproduction steps

  1. Start Zed
  2. Open new empty tab
  3. Enter many lines to make vertical scrollbar appear
  4. Select all content (Ctrl + A)
  5. Press Ctrl+Shift+P and select command editor::SplitSelectionIntoLines
📺Video

2026-02-09.21-46-58-240.mp4

Current vs. Expected behavior

Current behavior
A file is scrolled till the end

Expected behavior
A file is not scrolled (like in VSCode)

Zed version and system specs

Zed: v0.223.2+preview.146.16e7dc6cfdc74af3d80fab913a694b757c3a3349 (Zed Preview)
OS: Windows 10.0.26200
Memory: 27.8 GiB
Architecture: x86_64
GPU: AMD Radeon 780M Graphics || AMD Corporation || 25.12.1 (25.20.29.09-251203a-196284C-AMD-Software-Adrenalin-Edition)

Attach Zed log file

No response

Relevant Zed settings

No response

Relevant Keymap

No response

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Labels

area:editorFeedback for code editing, formatting, editor iterations, etcarea:ui/scrollingScrollbar and scrollingfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions