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

Error when trying to quit with :xa #12

Open
JakeAdler opened this issue Apr 16, 2021 · 4 comments
Open

Error when trying to quit with :xa #12

JakeAdler opened this issue Apr 16, 2021 · 4 comments

Comments

@JakeAdler
Copy link

Steps to reproduce:

  • toggle term on
  • toggle term off
  • try to quit with :xa

Error:

E948: Job still running                                                                                                                                                                                                                      
E676: No matching autocommands for acwrite buffer   

Nvim version: nightly@fe808f0

@JakeAdler
Copy link
Author

From :h xa

:xa Write all changed buffers and exit Vim. If there are buffers without a file name, which are readonly or which cannot be written for another reason, Vim will not quit.

@numToStr
Copy link
Owner

numToStr commented May 7, 2021

IMO that's expected. When you toggle the terminal. the terminal buffer stays in the background for reuse and the terminal buffer is a modified buffer. But you can't save the terminal buffer.

Because of this behavior, I am also force closing the terminal buffer.

api.nvim_buf_delete(self.buf, {force = true})

You can try to close (not toggle) the terminal and then try :xa.

@AckslD
Copy link
Contributor

AckslD commented Aug 5, 2021

I also encountered this. Not really an issue with fterm but curious to hear if anyone has some solution which doesn't involve manually closing the terminal buffer before wqa.

@AckslD
Copy link
Contributor

AckslD commented Aug 5, 2021

Actually @numToStr how do you mean "close" the buffer? I tried both lua require('FTerm').close() and :q but neither help with wqa.

The confusing thing is that wa followed by qa works but not wqa.

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

No branches or pull requests

3 participants