Skip to content

Using open_below to open multiple lines is broken with crlf line endings #13903

Closed
@abdavis

Description

@abdavis

Summary

You can open multiple lines by specifying a number, then pressing o. It opens the correct number of lines, but if the file mode is set to crlf only half of the new lines are selected for editing.

Reproduction Steps

I tried this:

  1. set line-ending to crlf.
  2. type character sequence 10o

I expected this to happen:
10 new lines opened with 10 selections in insert mode

Instead, this happened:
10 new lines were opened, but only the first 5 new lines have selections.

Helix log

log reports no errors, program doesn't crash.

Platform

Windows

Terminal Emulator

alacritty

Installation Method

source

Helix Version

25.01.1-479-g479c3b55

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions