File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ Lines may be optionally prefixed with '=' (similar to the Lua prompt) to print a
1818
1919## Functions defined by ` lua_repl `
2020
21+ <a id =" M.open " ></a >
22+ ### ` M.open ` (* new* )
23+
24+ Creates or switches to a Lua REPL.
25+ If * new* is ` true ` , creates a new REPL even if one already exists.
26+
27+ Parameters:
28+
29+ * * ` new ` * : Flag that indicates whether or not to create a new REPL even if one already exists.
30+
2131<a id =" lua_repl.complete_lua " ></a >
2232### ` lua_repl.complete_lua ` ()
2333
Original file line number Diff line number Diff line change 168168-- @name keys
169169M .keys = {
170170 [' \n ' ] = M .evaluate_repl ,
171- [not ( OSX and not CURSES ) and ' ctrl+ ' or ' alt+esc ' ] = M .complete_lua ,
171+ [' ctrl+ ' ] = M .complete_lua ,
172172 [' ctrl+up' ] = M .cycle_history_prev ,
173173 [' ctrl+down' ] = M .cycle_history_next ,
174174 [' ctrl+p' ] = M .cycle_history_prev ,
@@ -211,7 +211,7 @@ function M.open(new)
211211 if new or not (repl_view or repl_buf ) then
212212 buffer .new ()._type = ' [Lua REPL]'
213213 buffer :set_lexer (' lua' )
214- buffer :add_text (' -- ' .. _L [' Lua REPL' ]:gsub (' _ ' , ' ' ))
214+ buffer :add_text (' -- ' .. _L [' Lua REPL' ]:gsub (' [_&] ' , ' ' ))
215215 buffer :new_line ()
216216 buffer :set_save_point ()
217217 register_keys ()
You can’t perform that action at this time.
0 commit comments