Improve tab completion in command mode

Pressing tab when all suggestions start with the same substring
will insert that substring (this is how bash autocompletion works).
This commit is contained in:
Zachary Yedidia
2016-08-28 13:05:07 -04:00
parent da7bc997ff
commit aa9dbdde3e
4 changed files with 40 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
package main
import "testing"
import (
"fmt"
"testing"
)
func TestNumOccurences(t *testing.T) {
var tests = []struct {