run sandbox even when cursor in function

This commit is contained in:
Kartik K. Agaram 2021-06-04 22:05:51 -07:00
parent 4975bc82df
commit 65e414911f
1 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,13 @@ fn edit-environment _self: (addr environment), key: grapheme, data-disk: (addr d
#
return
}
# ctrl-s: always send to repl
{
compare key, 0x13/ctrl-s
break-if-!=
edit-sandbox sandbox, key, globals, data-disk, 1/tweak-real-screen
return
}
# ctrl-g: go to a function (or the repl)
{
compare key, 7/ctrl-g