Skip to content

vim._with changes window-local option value #37304

@phanen

Description

@phanen

Problem

Steps to reproduce

local api = vim.api
local win = api.nvim_open_win(api.nvim_create_buf(false, true), true, {
  style = 'minimal',
  height = 10,
  width = 10,
  row = 5,
  col = 5,
  relative = 'cursor',
})
vim._with({ wo = { nu = true } }, function() end)

Expected behavior

float window should be nonumber?

System info

  • Nvim version (nvim -v): v0.12.0-dev-1966 g4d46d040c3 4d46d040c3
  • Vim (not Nvim) behaves the same?: ?
  • Operating system/version: Linux 6.18.3-zen1-1-zen
  • Terminal name/version: kitty
  • $TERM environment variable: xterm-kitty
  • Installation: ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    luastdlib

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions