about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xlua/chupacabra/repl3
-rw-r--r--lua/chupacabra/repl.lua4
2 files changed, 5 insertions, 2 deletions
diff --git a/lua/chupacabra/repl b/lua/chupacabra/repl
new file mode 100755
index 0000000..6cfaabc
--- /dev/null
+++ b/lua/chupacabra/repl
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+rlwrap lua repl.lua
\ No newline at end of file
diff --git a/lua/chupacabra/repl.lua b/lua/chupacabra/repl.lua
index bed67c2..55e10a4 100644
--- a/lua/chupacabra/repl.lua
+++ b/lua/chupacabra/repl.lua
@@ -20,7 +20,7 @@ local function scratch(input)
     table.insert(stack, {input = input, output = output})
 end
 
-local function print_stack()
+local function scratch_out()
     for i, entry in ipairs(stack) do
         print("   input: " .. entry.input)
         if type(entry.output) == "table" then
@@ -38,6 +38,6 @@ while true do
         break
     end
     scratch(input)
-    print_stack()
+    scratch_out()
     stack = {}
 end
\ No newline at end of file
evision' href='/akspecs/ranger/blame/examples/plugin_chmod_keybindings.py?h=v1.9.3&id=76791a70467d7223a966aa9f12f5583b01d704a8'>^
972da7ba ^
ab41c776 ^
ca1a5d21 ^
b3d031a9 ^
972da7ba ^
d1a1173d ^

33aeef8e ^
d1a1173d ^


972da7ba ^
b3d031a9 ^
ca1a5d21 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26