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

Open
opened 2026-01-31 08:54:37 +00:00 by claunia · 0 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:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23864