Skip to content

The autocmd that reshapes cursor when quitting neovim does not work after upgrading to latest pre-release #19628

@wxutopia

Description

@wxutopia

Windows Terminal version

1.23.12811.0

Windows build number

10.0.26200.0

Other Software

No response

Steps to reproduce

I have the following autocmd to reshape cursor to a vertical line when qutting neovim. When I upgrade neovim to the latest pre-release, the autocmd dose not work anymore. Cursor remains a block after qutting neovim.

-- autocmds.lua

local autocmds = vim.api.nvim_create_autocmd
local auto_group_reshape_cursor = vim.api.nvim_create_augroup("ReshapeCursor", { clear = true })

autocmds("VimLeave", {
	pattern = "*",
	command = "set guicursor=a:ver1",
	group = auto_group_reshape_cursor,
	desc = "Reshape cursor when exiting vim.",
})

-- init.lua

require("autocmds")

Neovim version:
NVIM v0.12.0-dev-1775+g62dd74d472
Build type: RelWithDebInfo
LuaJIT 2.1.1764593432

Expected Behavior

Cursor is changed to a vertical line.

Actual Behavior

Cursor remains a block after qutting neovim.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions