cursorn fixad
This commit is contained in:
parent
2a594eac1d
commit
cf912ea9fc
@ -118,8 +118,9 @@ func input_str(env *environment.Env) string {
|
|||||||
input = input_at + input_after
|
input = input_at + input_after
|
||||||
|
|
||||||
case 9: // TAB
|
case 9: // TAB
|
||||||
input = AutoComplete(input, *env)
|
complete := AutoComplete(input[:cursor], *env)
|
||||||
cursor = len(input)
|
input = complete + input[cursor:]
|
||||||
|
cursor = len(complete)
|
||||||
case 27: // Escape
|
case 27: // Escape
|
||||||
input, history_index, cursor = Escape_handler(reader, history_index, input, *env, cursor)
|
input, history_index, cursor = Escape_handler(reader, history_index, input, *env, cursor)
|
||||||
case 127: //packspace
|
case 127: //packspace
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user