Skip to content

Commit

Permalink
vim-2335 Support for navigation to previous buffer with :b#
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPlacek authored and AlexPl292 committed Jul 1, 2021
1 parent 43884c7 commit 408cd0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class BufferHandler : CommandHandler.SingleExecution() {
VimPlugin.showMessage(MessageHelper.message("buffer.0.does.not.exist", bufNum))
result = false
}
} else if (buffer == "#") {
VimPlugin.getFile().selectPreviousTab(context)
} else {
val editors = findPartialMatch(context, buffer)

Expand Down

0 comments on commit 408cd0e

Please sign in to comment.