Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for issues 105 #111

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Solution for issues 105 #111

merged 1 commit into from
Jun 9, 2023

Conversation

CesarGuzmanLopez
Copy link
Contributor

@CesarGuzmanLopez
Copy link
Contributor Author

@figitaki
Copy link

@pocco81 any chance we could get this merged?

local cursor_pos
if api.nvim_win_is_valid(win.main) then
if pcall(function() api.nvim_win_is_valid(win.main) end) and api.nvim_win_is_valid(win.main) then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change may need is

if win.main and api.nvim_win_is_valid(win.main) then

But I may be wrong.

@dandennison84
Copy link

I added this code to my file as above. This is the result with TZNarrow (all other commands work fine). There is no error message for below.

Narrow on some text with :TZNarrow
Finish up and go back to normal :TZNarrow
Narrow on some new text :TZNarrow
Finish up and go back to normal :TZNarrow
This 4th one causes my nvim to close completely every time. Tested in nvim linux (wsl), nvim from windows and neovide in windows.

@pocco81 pocco81 merged commit 2b9e210 into pocco81:main Jun 9, 2023
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.

5 participants