Skip to content

Commit

Permalink
chore: explicitly set vim.o.columns for resize
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Nov 23, 2023
1 parent f591940 commit b70dbc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/kitty-scrollback/launch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,12 @@ M.launch = function()
end
vim.schedule(function()
ksb_kitty_cmds.get_text_term(kitty_data, get_text_opts, function()
-- NOTE(#58): nvim v0.9 support
-- vim.o.columns is resized automatically in nvim v0.9.1 when we trigger kitty so send a SIGWINCH signal
-- vim.o.columns is explicitly set to resize appropriatley on v0.9.0
-- see https://github.com/neovim/neovim/pull/23503
vim.o.columns = p.orig_columns

ksb_kitty_cmds.signal_winchanged_to_kitty_child_process()
if opts.kitty_get_text.extent == 'screen' or opts.kitty_get_text.extent == 'all' then
set_cursor_position(kitty_data)
Expand Down

0 comments on commit b70dbc3

Please sign in to comment.