mappings.lua: Fix ctrl + q when vertical/horizontal split buffer is open

currently when a vertical or horizontal split buffer is open and ctrl + q is used, then it removes the buffer content but not the actual buffer, further it duplicates an existing buffer content.

This commit fixes that
This commit is contained in:
Akianonymus 2021-07-09 15:26:03 +05:30
parent e71b9bbece
commit 2988a22eb8
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ map("n", "<C-s>", ":w <CR>", opt)
map("n", "<leader>/", ":CommentToggle<CR>", opt) map("n", "<leader>/", ":CommentToggle<CR>", opt)
map("v", "<leader>/", ":CommentToggle<CR>", opt) map("v", "<leader>/", ":CommentToggle<CR>", opt)
map("n", "<C-q>", ":bp<bar>sp<bar>bn<bar>bd! <CR>", opt) map("n", "<C-q>", ":bd! <CR>", opt)
-- compe stuff -- compe stuff