Skip to content
New issue

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

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

Already on GitHub? # to your account

Line preview in quickfix window doesn't work for closed/previous buffer #10

Closed
MattesGroeger opened this issue Mar 17, 2014 · 3 comments
Labels
Milestone

Comments

@MattesGroeger
Copy link
Owner

Should find a better way for retrieving the line content when populating the quickfix window. If not possible the content could be stored as part of the bookmark while created.

@MattesGroeger MattesGroeger added this to the 0.1.1 milestone Mar 17, 2014
@MattesGroeger
Copy link
Owner Author

Quick research: use getbufline({expr}, {lnum} [, {end}]) instead

@alexandnpu
Copy link

vim tells me that "
getbufline({expr}, {lnum} [, {end}])
.....
This function works only for loaded buffers. For unloaded and
non-existing buffers, an empty List is returned.

so it might be helpful if you store the one bookmark as "filename,lineNr,lineContnet". Then, if the buffer has been wiped out, you can open the file again according to its filename and lineNr.

@MattesGroeger
Copy link
Owner Author

Great, that's exactly what I did (fc6718f). Glad we had the same idea :)

Thanks for your ongoing contribution. Maybe you can also give your thoughts regarding issue #12, would be much appreciated!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants