Compare commits

..

No commits in common. "ded0be275fae6db804630766d11161d9d51a2afe" and "e044aeb5edceeb4a79cf625ee0693f85f1f1b5d7" have entirely different histories.

4 changed files with 5 additions and 8 deletions

View File

@ -155,7 +155,7 @@ func main() {
if getopt.NArgs() > 0 {
luaArgs := rt.NewTable()
for i, arg := range getopt.Args() {
luaArgs.Set(rt.IntValue(int64(i)), rt.StringValue(arg))
luaArgs.Set(rt.IntValue(int64(i + 1)), rt.StringValue(arg))
}
l.GlobalEnv().Set(rt.StringValue("args"), rt.TableValue(luaArgs))

View File

@ -34,6 +34,7 @@ const (
charCtrlHat // ^^
charCtrlUnderscore // ^_
charBackspace2 = 127 // ASCII 1963
)
// Escape sequences

View File

@ -416,10 +416,6 @@ func (rl *Instance) Readline() (string, error) {
rl.renderHelpers()
}
case charCtrlUnderscore:
rl.undoLast()
rl.viUndoSkipAppend = true
case '\r':
fallthrough
case '\n':
@ -557,8 +553,8 @@ func (rl *Instance) editorInput(r []rune) {
rl.refreshVimStatus()
default:
// Don't insert control keys
if r[0] >= 1 && r[0] <= 31 {
// For some reason Ctrl+k messes with the input line, so ignore it.
if r[0] == 11 {
return
}
// We reset the history nav counter each time we come here:

View File

@ -2,7 +2,7 @@ package main
// String vars that are free to be changed at compile time
var (
version = "v2.0.0"
version = "v1.2.0"
defaultConfDir = "" // ~ will be substituted for home, path for user's default config
defaultHistDir = ""
commonRequirePaths = "';./libs/?/init.lua;./?/init.lua;./?/?.lua'"