Skip to content

Commit b953891

Browse files
committed
refactor(block_for): treat any non-nil value as true
1 parent 8e3566c commit b953891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/flatten/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function M.edit_files(opts)
336336
if bufnr then
337337
local ft = vim.bo[bufnr].filetype
338338

339-
local block = config.block_for[ft] or force_block
339+
local block = config.block_for[ft] ~= nil or force_block
340340

341341
for _, cmd in ipairs(post_cmds) do
342342
vim.api.nvim_exec2(cmd, {})

0 commit comments

Comments
 (0)