Unfortunately, due to restrictions in the lua library, if we want to print the result of a function we have to prefix it with return, so this returns nothing:
> sn0int_version()
>
While this does:
> return sn0int_version()
"0.13.0"
>
For convenience, if tab is pressed while the cursor is at the start of the line we insert return, so the following combo can be used to rerun the last command with return prefixed:
This is supposed to aid script development.
Unfortunately, due to restrictions in the lua library, if we want to print the result of a function we have to prefix it with
return
, so this returns nothing:While this does:
For convenience, if tab is pressed while the cursor is at the start of the line we insert
return
, so the following combo can be used to rerun the last command withreturn
prefixed: