Comments (3)
Even if this bug is fixed, it can't be fixed for 0.9.5. Please test the latest stable release.
from neovim.
Hmm, it's strange that the height is correct, but the width is not.
from neovim.
This problem also occurs in the latest v0.11.0
in my environment.
terminal: wezterm, with tmux
hot to reproduce
- Execute ex cmd
:vsplit | term
- Execute shell
stty -a
$ stty -a | head -1
speed 0 baud; rows 26; columns 57; line = 0;
- Press CTRL+\ CTRL+N, then Execute ex cmd
redraw!
- Execute shell
stty -a
again
# the columns is changing even though the window width is not changing.
$ stty -a | head -1
speed 0 baud; rows 26; columns 55; line = 0;
For this reason I have put redraw in the map to eliminate this problem.
vim.keymap.set("n", "<leader>ts", "<cmd> split | redraw! | terminal <cr>", { desc = "Horizontal terminal" })
vim.keymap.set("n", "<leader>tv", "<cmd> vsplit | redraw! | terminal <cr>", { desc = "Vertical terminal" })
vim.keymap.set("n", "<leader>tn", "<cmd> tabedit | redraw! | terminal <cr>", { desc = "Terminal in New tab" })
PS: I'm sorry, My problem was due to the following autocmd
Removing setlocal nonumber fixed the problem.
local autoInsertTerminal = vim.api.nvim_create_augroup("auto_insert_terminal", {})
-- auto enter to insert mode in Terminal mode
vim.api.nvim_create_autocmd("TermOpen", {
group = autoInsertTerminal,
pattern = "*",
callback = function()
vim.cmd([[
setlocal nonumber norelativenumber
startinsert
]])
end,
})
from neovim.
Related Issues (20)
- In the old version of glibc and O2 is enabled, replacing the strncmp argument with a macro will cause the compilation to fail HOT 14
- send alt-x keycodes to vim.fn.chansend() HOT 5
- Error opening Astro files from tree HOT 5
- [LSP Completion] - dot character remains in completion results HOT 1
- :checkhealth reports error about providers HOT 1
- Spurious E506, E207 with files in unwritable directories HOT 2
- Restoring a `User{N}` highlight inside an item group causes the whole item group to disappear HOT 5
- show listchars only for current (cursor) line HOT 1
- Revamp option scopes
- commenting: add 'inner comment' text object
- Terminal sets `wrap` window-scoped instead of locally
- MAX macro redefined HOT 2
- Neovim v0.10.0 removes trailing whitespace on save HOT 8
- can't detect python provider in Windows 10 HOT 5
- Treesitter queries specified in the "inherits:" modeline are always merged, even if there is an overridden query
- Any key return messy codes HOT 1
- Weird tab chars when setting `listchars` only to `trail:.` HOT 2
- neovim-qt with Nvim v0.11.0 shows many "no notification handler registered" warnings HOT 4
- "focusable" for non-floating (split) windows
- Percent sign (%) for jumping to matching parenthesis doesn't regard comments and work properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim.