Closed yutkat closed 7 months ago
Good catch - I put that behind a guard, so it should only run if there's a win handle to pass. Seems to have solved the wrap
value for me. Are you still experiencing the issue?
Thank you :+1: It works fine with this commit. https://github.com/NeogitOrg/neogit/commit/9043ad7a188f171a4fb6099a2d9280f31bfb443c
Description
NeogitConsole buffer is created when Neogit is started for the first time, but the window is set to
nowrap
at that time.https://github.com/NeogitOrg/neogit/blob/4fa379c01040f8a51cd34be29c7e038a34c9f0a5/lua/neogit/lib/buffer.lua#L638-L640
Simple idea is to check if win_handle is nil before setting it up.
Neovim version
NVIM v0.10.0-dev-2765+gb8858dddb Build type: RelWithDebInfo LuaJIT 2.1.1710088188
Operating system and version
ArchLinux
Steps to reproduce
nvim -nu minimal.lua
:set wrap?
Expected behavior
Keep
wrap
Actual behavior
nowrap
Minimal config