Skip to content

Line duplication on ENTER #62

Description

@720720

Environment

Zed 1.15.0
Lua 0.1.10
Lua Language Server 3.19.1
Windows 11

Issue

  1. open a lua file
  2. put the cursor at the beginning of a code line
  3. press ENTER several times quickly
  4. the current line is intermittently duplicated
  5. disable lua-language-server
  6. press ENTER several times quickly
  7. everything works as expected

This issue is intermittent, so it may take multiple attempts to reproduce.

Test

vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
vim.opt.tabstop = 4

This is the neovim init.lua I used to test the issue.

Workaround

{
  "languages": {
    "Lua": {
      "enable_language_server": false,
    },
  }
}

With lua-language-server disabled, I can no longer reproduce the line duplication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions