OBS...
This commit is contained in:
parent
c53b5a80f2
commit
fb9007df49
@ -101,18 +101,19 @@ func input_str(env *environment.Env) string {
|
|||||||
} else {
|
} else {
|
||||||
history_index = len(env.History)-1
|
history_index = len(env.History)-1
|
||||||
input = ""
|
input = ""
|
||||||
if r, _, _ := reader.ReadRune(); r == 65 { // UPP
|
if r, _, _ := reader.ReadRune(); r == 65 { // UPP
|
||||||
if history_index > 0 {
|
if history_index > 0 {
|
||||||
history_index--
|
history_index--
|
||||||
input = env.History[history_index]
|
input = env.History[history_index]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if r, _, _ := reader.ReadRune(); r != 66 { //DOWN
|
||||||
if r, _, _ := reader.ReadRune(); r != 66 { //DOWN
|
if history_index < len(env.History)-1 {
|
||||||
if history_index < len(env.History)-1 {
|
history_index++
|
||||||
history_index++
|
input = env.History[history_index]
|
||||||
input = env.History[history_index]
|
} else {
|
||||||
} else {
|
input = ""
|
||||||
input = ""
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 127: //packspace
|
case 127: //packspace
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user