Skip to content

Do not try to enter normal mode when in terminal mode#9

Open
lrustand wants to merge 1 commit intoszw:masterfrom
lrustand:master
Open

Do not try to enter normal mode when in terminal mode#9
lrustand wants to merge 1 commit intoszw:masterfrom
lrustand:master

Conversation

@lrustand
Copy link
Copy Markdown

No description provided.

@lrustand
Copy link
Copy Markdown
Author

This prevents an error message when maximizing terminals

@dmmulroy
Copy link
Copy Markdown

Any chance of this getting merged? @lrustand have you found an alternative workaround?

@dmmulroy
Copy link
Copy Markdown

dmmulroy commented Dec 12, 2022

If anyone else stumbles upon this, this is how I got around the error:

vim.keymap.set("t", "<leader>m", function()
	pcall(vim.cmd.MaximizerToggle)
end)

kis9a added a commit to kis9a/vim-maximizer that referenced this pull request Mar 29, 2026
- Exclude floating/popup windows from winrestcmd to fix restore with
  plugins like coc.nvim and nvim-scrollview (upstream szw#7, szw#8)
- Skip normal! ze in terminal buffers to prevent errors (upstream PR szw#9, szw#10)
- Guard toggle against execution in command-line window (upstream szw#11)
- Move core functions to autoload/ for lazy loading with cpoptions guard
- Add Makefile and Themis test suite (9 tests, Vim/Neovim)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants