mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
change strings.Index
for strings.Contains
This commit is contained in:
parent
efef345665
commit
db3d7e8927
@ -77,7 +77,7 @@ func (i *Input) KeyPress(e ui.Event) {
|
||||
if len(i.Data) >= i.MaxLen {
|
||||
return
|
||||
}
|
||||
if strings.Index(input_chars, ch) > -1 {
|
||||
if strings.Contains(input_chars, ch) {
|
||||
i.Data += ch
|
||||
i.stream <- i.Data
|
||||
ui.Render(i)
|
||||
|
Loading…
Reference in New Issue
Block a user