tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

Filter file as empty lists out of stacktraces #292

Closed glittershark closed 7 years ago

glittershark commented 7 years ago

More investigation into why these are empty lists is probably in order, but at the moment this fixes the symptoms of #291

tpope commented 7 years ago

Good detective work. Use type(get(v:val, "file")) == type("") as the conditional please. v:t_string is too new.

glittershark commented 7 years ago

Done.

glittershark commented 7 years ago

oops, missed the get. one sec

glittershark commented 7 years ago

Updated.

tpope commented 7 years ago

You can drop the has_key(), since get(...) returns 0 by default which fails the conditional.

glittershark commented 7 years ago

Done, and updated the commit message accordingly