Fix memory leaks

This commit is contained in:
2026-01-31 23:23:08 +00:00
parent 04cce4224e
commit 154e557339
10 changed files with 440 additions and 373 deletions

View File

@@ -286,6 +286,11 @@ module C
extensions: ["sh"],
filenames: ["bash_profile", "bashrc"],
lsp: "bash-language-server"
},
default: {
color: 0x6d8086,
symbol: "󰈚 ",
extensions: []
}
}
@theme = {
@@ -347,6 +352,9 @@ module C
mode_symbol = ""
end
lang_info = C.languages[info[:lang_name]]
if lang_info.nil?
lang_info = C.languages[:default]
end
filename = File.basename(info[:filename])
starting = " #{mode_symbol} #{info[:mode].to_s.upcase}  #{lang_info[:symbol]}#{filename}"
highlights = []