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

Closed
opened 2026-01-31 08:54:39 +00:00 by claunia · 3 comments
Owner

Originally created by @wxutopia on GitHub (Dec 7, 2025).

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.

Originally created by @wxutopia on GitHub (Dec 7, 2025). ### 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. ```lua -- 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.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:54:40 +00:00
Author
Owner

@DHowett commented on GitHub (Dec 9, 2025):

Since you marked this issue as closed, should we assume your issue is resolved?

@DHowett commented on GitHub (Dec 9, 2025): Since you marked this issue as closed, should we assume your issue is resolved?
Author
Owner

@wxutopia commented on GitHub (Dec 10, 2025):

Unfortunately, it's not. I closed it becaue I thought that neovim's developers were responsible for solving this issue. However, they told me to bring this issue to Windows terminal's maintainers.

Image

https://github.com/neovim/neovim/issues/36863.

@wxutopia commented on GitHub (Dec 10, 2025): Unfortunately, it's not. I closed it becaue I thought that neovim's developers were responsible for solving this issue. However, they told me to bring this issue to Windows terminal's maintainers. <img width="1466" height="437" alt="Image" src="https://github.com/user-attachments/assets/b4a2e5ef-ae8a-4c6f-b872-771e511c9a0c" /> https://github.com/neovim/neovim/issues/36863.
Author
Owner

@DHowett commented on GitHub (Dec 10, 2025):

When I upgrade neovim to the latest pre-release, the autocmd dose not work anymore.

I mean, it sure sounds like it was broken by a neovim change. We're not intending on changing the behavior of Se (reset cursor shape).

@DHowett commented on GitHub (Dec 10, 2025): > When I upgrade neovim to the latest pre-release, the autocmd dose not work anymore. I mean, it sure _sounds_ like it was broken by a neovim change. We're not intending on changing the behavior of `Se` (reset cursor shape).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23867