GNOME Bugzilla – Bug 768356
vim: Check for open buffer in :bnext and :bprev commands
Last modified: 2016-07-05 13:31:51 UTC
See the commit message for an explanation.
Created attachment 330822 [details] [review] vim: Check for open buffer in :bnext and :bprev commands The vim commands :bnext and :bprev let the user switch to another buffer. If those commands are executed without any buffers open, ide_widget_action() fails and emits a warning. This commit checks if any buffers are open, and if not the command gracefully gives up. This matches vim's behavior.
Review of attachment 330822 [details] [review]: LGTM
Pushed as commit bd41b3fa1641e13067c78670a371576e31ebaf4d