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

E924: Current window was closed #98

Closed
jpmv27 opened this issue Oct 13, 2016 · 5 comments
Closed

E924: Current window was closed #98

jpmv27 opened this issue Oct 13, 2016 · 5 comments

Comments

@jpmv27
Copy link
Contributor

jpmv27 commented Oct 13, 2016

Scenario 1)
To reproduce:

  • g:bookmark_location_list=1
  • Show two files in two separate tabs
  • Place a bookmark in one file
  • Switch to other tab
  • BookmarkShowAll
  • Select bookmark in file in first tab

Expected result:

  • Switch tabs, go to bookmark

Actual result:

  • Switch tabs, go to bookmark
  • E924 error message

Scenario 2)
To reproduce:

  • g:bookmark_location_list=1 and g:bookmark_auto_close=1
  • Open a file
  • Place a bookmark
  • BookmarkShowAll
  • Select bookmark

Expected result:

  • Go to bookmark
  • Close window

Actual result:

  • Go to bookmark
  • Close window
  • E924 error message

I have Syntastic installed as well as vim-bookmarks
The problem does not happen if vim-bookmarks is using quickfix list instead of location list

@jpmv27
Copy link
Contributor Author

jpmv27 commented Oct 13, 2016

I tried disabling all other plugins and I still see the issue with both scenarios (previous update was testing error)

@jpmv27
Copy link
Contributor Author

jpmv27 commented Oct 13, 2016

I am mystified. I have disabled all plugins except vim-bookmarks and I have commented-out all autocmd in the vim-bookmarks code (except for VimEnter) and I can still reproduce the issue in scenario (1). Could this be a vim bug?

@jpmv27
Copy link
Contributor Author

jpmv27 commented Oct 14, 2016

I'm now fairly certain that scenario (1) is a vim bug; see vim/vim#1167

@jpmv27
Copy link
Contributor Author

jpmv27 commented Oct 14, 2016

Scenario (1) is due to a vim bug, see above.
Even with the fix for the vim bug applied, I can still reproduce scenario (2).
Work-around is to disable auto_close when using the loclist

@MattesGroeger
Copy link
Owner

Hi @jpmv27 ,

thx for reporting and investigating this issue. I tried to reproduce both scenarios just now (vim 8.2).

  1. It works for me but doesn't change tab, instead it opens the file in the current tab which is also not ideal
  2. This actually worked for me now, maybe it got fixed in the last 5 years?

Anyway, I'm sorry my response took sooooo long and hope this is good by now.

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

2 participants