Skip to content

Commit

Permalink
Merge pull request #30 from joshzcold/main
Browse files Browse the repository at this point in the history
fix: nil check on clean_up_block_value
  • Loading branch information
cuducos authored Aug 7, 2024
2 parents 77aa881 + a8c831e commit 615985c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/yaml_nvim/pair.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ local function reverse(keys)
end

local function clean_up_block_value(value)
if value == nil then
return
end
value = string.gsub(value, "\n", " ")

if value:sub(1, 1) ~= "|" then
Expand Down

0 comments on commit 615985c

Please sign in to comment.