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

Add ++nested modifier to TabLeave autocommand #205

Merged
merged 2 commits into from
Jun 13, 2019

Conversation

benknoble
Copy link
Contributor

This allows autocommands to fire for commands during s:goyo_off.

A prominent example would be any autocommands user's installed on the
ColorScheme event (e.g., to set User highlights, like I do in my Dotfiles)

This should provide a fix for #160. Of note, I only see issues in my statusline (which uses User highlights) when I hit e.g. gt from goyo—when I close the tab with :quit, everything works fine. So I've only added the nested modifier here.

This allows autocommands to fire for commands during s:goyo_off.

A prominent example would be any autocommands user's installed on the
ColorScheme event (e.g., to set User highlights, like @benknoble does in
his Dotfiles).
@junegunn
Copy link
Owner

Hi, both Neovim and Vim version I have installed on my system don't understand ++nested, so please change it to nested for backward compatibility.

autocmd TabLeave    * nested call s:goyo_off()

(You can just fit in nested between * and call without extra spaces now.)

@benknoble
Copy link
Contributor Author

@junegunn Done 👍

@junegunn junegunn merged commit 6b6ed27 into junegunn:master Jun 13, 2019
@benknoble benknoble deleted the nested branch June 13, 2019 16:43
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