Skip to content

Commit cf2db69

Browse files
committed
deprecate mode 'buffer'
1 parent 825a0d5 commit cf2db69

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lua/code_runner/commands.lua

+2-7
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ local function execute(command, bufname, prefix)
114114
local set_bufname = "file " .. bufname
115115
local current_wind_id = vim.api.nvim_get_current_win()
116116
close_runner(bufname)
117-
if prefix ~= "bufdo" then
118-
prefix = prefix .. " |"
119-
end
120-
vim.cmd(prefix .. " term " .. command)
117+
vim.cmd(prefix)
118+
vim.fn.termopen(command)
121119
vim.cmd("norm G")
122120
vim.opt_local.relativenumber = false
123121
vim.opt_local.number = false
@@ -170,9 +168,6 @@ M.modes = {
170168
tab = function(command, bufname)
171169
execute(command, bufname, "tabnew")
172170
end,
173-
buf = function(command, bufname)
174-
execute(command, bufname, "bufdo")
175-
end,
176171
toggleterm = function(command, ...)
177172
local tcmd = string.format('TermExec cmd="%s"', command)
178173
vim.cmd(tcmd)

0 commit comments

Comments
 (0)