Skip to content

Commit

Permalink
Fix lua boolean errors by wrapping tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsutherland authored and bergercookie committed Jul 9, 2021
1 parent 80295fc commit 5fad4c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ftplugin/lua.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function! s:DebugStringFunBase(desc, var)
let l:debug_str = 'print("' . a:desc . '" .. ' . a:var . ')'
let l:debug_str = 'print("' . a:desc . '" .. tostring(' . a:var . '))'
return l:debug_str
endfunc

Expand Down
4 changes: 2 additions & 2 deletions test/ft/a.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
print("[[Vader-workbench]:$1$] DEBUGGING STRING ==> " .. $2$)
print("a**2 + b**2: " .. a**2 + b**2)
print("[[Vader-workbench]:$1$] DEBUGGING STRING ==> " .. tostring($2$))
print("a**2 + b**2: " .. tostring(a**2 + b**2))

0 comments on commit 5fad4c0

Please sign in to comment.