Repository navigation
fix(remember): tolerate restore errors and glob-like buffer names - #18
Closed
vladdoster wants to merge 14 commits into
Closed
vladdoster wants to merge 14 commits into
vladdoster wants to merge 14 commits into
Conversation
Restore original field ordering (ignore_filetype before ignore_buftype) in config table and setup function. Restore blank line after license block and trailing newline. These were pure formatting noise unrelated to the pcall fix.
setup() tested each option for truthiness. A user could not turn a default off. Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
Test the buffer name with filereadable() instead of glob(). A name like "[Scratch-1]" is a glob pattern and raised E944. Defer the notify call with vim.schedule and report each distinct error once. Rethrow a keyboard interrupt so the triggering command still aborts. Fixes #10 Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
Drive a real "nvim --headless" to cover mark restore, the [Scratch-1] window from issue #10, and deferred error reporting. The spec is pending when nvim is not on PATH. Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
📊 Test Coverage ReportOverall Coverage: 97.78% 📋 Detailed Coverage ReportCoverage report generated by luacov |
Owner
Author
|
Closing in favor of #14. The same four commits are now pushed to that PR's branch so its review history stays in one place. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wrap the cursor restore in
pcall, test the buffer name withfilereadable()instead ofglob(), and report each distinct error once through a deferredvim.notify.setup()now acceptsfalseforopen_foldsanddont_center.Related issue(s)
Fixes #10, supersedes #14.
Usage examples
nvim '+silent keepalt topleft vertical 30 new [Scratch-1]'How has this been tested?
busted testspasses 24 specs, three of which drive a real headlessnvim, and CI now installs Neovim so they run there too.Types of changes