Skip to content

Commit

Permalink
Merge pull request rxi#56 from Guldoman/lfautoindent_newfile
Browse files Browse the repository at this point in the history
`lfautoinsert`: Avoid touching new files
  • Loading branch information
franko authored Aug 23, 2021
2 parents dfe585a + 08ac68b commit 328eaa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/lfautoinsert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ config.plugins.lfautoinsert = { map = {

local function get_autoinsert_map(filename)
local map = {}
if not filename then return map end
for pattern, closing in pairs(config.plugins.lfautoinsert.map) do
if type(closing) == "table" then
if common.match_pattern(filename, closing.file_patterns) then
Expand Down

0 comments on commit 328eaa5

Please sign in to comment.