kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.53k stars 92 forks source link

Suppress "No fold found" with :silent! #276

Closed nickspoons closed 1 month ago

nickspoons commented 1 month ago

Some adapters output a blank line as the first line of the dbout buffer, e.g. oracle with sqlplus. In this situation, an error is currently thrown on each execution, as the FileType dbout auto-command calls normal!zo with the cursor on the first line, which is not in a fold.

This PR simply suppresses that error with :silent!