Fix TabSwitch to work by tab name as well

This commit is contained in:
Zachary Yedidia
2017-04-02 09:27:04 -04:00
parent be2d3c9c1e
commit dd87769090
2 changed files with 2 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ func TabSwitch(args []string) {
for _, t := range tabs {
v := t.views[t.CurView]
if v.Buf.GetName() == args[0] {
curTab = v.Num
curTab = v.TabNum
found = true
}
}

View File

@@ -1900,7 +1900,7 @@ func runtimeSyntaxHaskellYaml() (*asset, error) {
return a, nil
}
var _runtimeSyntaxHtmlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x54\xdd\x6e\xdb\x46\x13\xbd\xfe\xf4\x14\x8c\xf2\xa1\xd8\xb5\x2b\xb9\xbd\x31\x50\xc6\x31\x51\xa4\xed\x6d\x7b\xd1\x9b\x42\xa6\x81\xe5\xee\x90\xdc\x6a\x7f\x98\xdd\xa1\x12\xb5\xa7\xef\x5e\x2c\x65\xc7\x32\xe2\x14\x05\x4a\x08\x84\x70\x66\x38\x73\xe6\xcc\x4f\x6f\x1d\xf1\x71\xa2\xba\x1a\xd9\xbb\xd5\xca\x10\x93\xe6\xba\x5a\x55\x55\x55\x15\x63\x50\x9e\xea\x6a\x7d\x77\xb7\x1d\xd9\xef\x5c\xdb\xfc\x7f\xbd\x5a\xa5\xd9\x51\xae\x17\x9f\x4d\x45\x29\xc5\x54\x57\xeb\x9b\xdd\xfd\xab\x76\x7b\xd1\xdc\xae\x1f\x0c\xf9\xe8\xbb\xe8\xb6\xac\x86\x62\xfd\xa2\x45\x34\x56\xde\xec\xae\xda\x46\x28\xd1\x75\x09\x3a\xc5\x70\xf4\x30\x26\x51\xce\x98\x26\x47\x8c\x44\x0a\x89\xad\x76\x84\x6c\x0d\x61\x36\x36\xca\x06\x9d\x50\x99\x44\x1f\x03\xcb\x06\x46\x58\x44\x09\x3b\xc0\x45\xbd\x7f\x3f\x47\x26\x24\xd9\x40\x2b\x11\x0e\x2a\x63\x62\x1b\x83\x84\xa6\xc0\x94\xa0\x2d\x13\x74\x14\x86\xe0\xe0\x86\x14\xe7\x49\xc2\x08\xc5\x4a\x38\x9b\x97\x78\x20\x07\x62\x65\x5d\x46\x1f\x60\x95\x8b\x03\x6c\x82\x03\x4b\x90\x17\x1d\x19\xd9\xa0\xb7\xe4\x4c\x26\x46\x6f\x07\xa1\xd5\x92\x04\x73\x22\x89\x42\x0b\x7d\x4c\x1e\xc2\xca\xa6\x4f\xca\x13\x96\x77\xf1\x1e\x77\xdf\x6e\xae\x5b\x8c\x09\x16\xd6\x0f\xb0\x41\x4c\x33\x23\x4b\xec\x3b\x83\x3d\x1d\x07\x0a\x70\xaa\x23\x07\x47\x03\x05\x03\x67\x45\xd8\xcb\x06\x5e\x09\x1b\x30\x21\xed\x25\x3c\x85\x59\x58\x26\x5f\x70\x62\xa1\x40\x49\x22\xa8\x03\x42\x14\xa7\x5c\xc8\x3a\xd9\x89\x25\xa2\x70\x98\x58\x2c\x95\x62\x51\x62\xe6\x69\x66\x89\x49\xa8\xa4\x3c\xac\xe6\x39\x11\xca\x2f\x0e\x45\x7a\xd9\xe0\x3d\x92\x98\xc0\x98\xbb\xa3\x44\x16\x9c\xec\x9e\x64\x83\xac\xfc\x84\x4c\x42\x2f\xc5\x3a\xd2\x2c\x91\xbd\x72\x0e\x39\xce\x49\x13\xf2\xa4\x02\x32\xa7\x18\x06\xe4\x59\x74\x98\xe0\xbd\x4a\x47\x09\xa6\x8f\xac\x4a\x37\xd9\x7a\x02\x27\xa5\xf7\x98\x85\x93\x0d\x0e\x2a\xe1\x60\x0d\x45\x7c\xe8\x92\x14\xd5\xf6\x02\xb7\xf2\xc5\x99\xd9\xd2\x47\xa6\x60\xc8\x3c\x1b\x9e\x2e\x9a\x23\x8c\x3d\xa0\x0c\x32\x46\x52\x46\x50\x69\x7f\x1f\x63\xe9\x37\x5b\x76\x04\x56\x5d\x79\x3f\x38\x63\x14\xa4\x4a\x13\xd3\xe2\x25\x97\xac\xcf\x72\x4e\x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\xe8\x3c\x93\xfc\x9c\xc6\xcd\x69\x75\x9f\x0e\xe7\x99\xf0\x57\x2f\xd9\x9c\xf5\x96\x37\xcb\x86\xd7\x67\xea\xff\x33\x47\x1b\xb4\x9b\x4d\xb9\xf1\xbf\xab\x83\x3a\x85\xfd\x37\xdc\xf8\xe8\xe8\x0b\xd4\x3e\x37\xfd\x47\x66\x3a\xe7\xf5\x6a\xf5\x77\x00\x00\x00\xff\xff\x90\x60\xbd\xba\xac\x06\x00\x00")
var _runtimeSyntaxHtmlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x54\x4d\x8f\xe3\x44\x10\x3d\x93\x5f\xe1\xf5\x22\xd4\xbd\x4b\x32\x70\x19\x09\x6f\x76\x2c\xb4\xc0\x15\x0e\x5c\x50\x26\x23\xb5\xbb\xcb\x76\x93\xfe\xf0\x76\x97\xb3\x1b\x78\xfc\x77\xd4\xce\xcc\x4e\x46\x3b\x20\x24\xac\xc8\x8a\x5e\x95\xab\x5e\xbd\xfa\xe8\xad\x23\x3e\x4d\xd4\x54\x23\x7b\xb7\x5a\x19\x62\xd2\xdc\x54\xab\xaa\xaa\xaa\x62\x0c\xca\x53\x53\xd5\xb7\xb7\x9b\x91\xfd\xce\xed\xdb\x2f\xeb\xd5\x2a\xcd\x8e\x72\xb3\xf8\xac\x2b\x4a\x29\xa6\xa6\xaa\xb7\xbb\xbb\x17\xfb\xcd\xab\xf6\xa6\xbe\x37\xe4\x93\xef\xa2\xdb\xb0\x1a\x9a\xaa\x16\xad\x95\xdb\xdd\xd5\xbe\x15\x4a\x74\x5d\x82\x4e\x31\x9c\x3c\x8c\x49\x94\x33\xa6\xc9\x11\x23\x91\x42\x62\xab\x1d\x21\x5b\x43\x98\x8d\x8d\xb2\x45\x27\x54\x26\xd1\xc7\xc0\xb2\x85\x11\x16\x51\xc2\x0e\x70\x51\x1f\xde\xcf\x91\x09\x49\xb6\xd0\x4a\x84\xa3\xca\x98\xd8\xc6\x20\xa1\x29\x30\x25\x68\xcb\x04\x1d\x85\x21\x38\xb8\x21\xc5\x79\x92\x30\x42\xb1\x12\xce\xe6\x25\x1e\xc8\x81\x58\x59\x97\xd1\x07\x58\xe5\xe2\x00\x9b\xe0\xc0\x12\xe4\x45\x47\x46\xb6\xe8\x2d\x39\x93\x89\xd1\xdb\x41\x68\xb5\x24\xc1\x9c\x48\xa2\xd0\x42\x1f\x93\x87\xb0\xb2\xed\x93\xf2\x84\xe5\x5d\xbc\xc7\xdd\xb7\xeb\xeb\x3d\xc6\x04\x0b\xeb\x07\xd8\x20\xa6\x99\x91\x25\x0e\x9d\xc1\x81\x4e\x03\x05\x38\xd5\x91\x83\xa3\x81\x82\x81\xb3\x22\x1c\x64\x0b\xaf\x84\x0d\x98\x90\x0e\x12\x9e\xc2\x2c\x2c\x93\x2f\x38\xb1\x50\xa0\x24\x11\xd4\x11\x21\x8a\x73\x2e\x64\x9d\xec\xc4\x12\x51\x38\x4c\x2c\x96\x4a\xb1\x28\x31\xf3\x34\xb3\xc4\x24\x54\x52\x1e\x56\xf3\x9c\x08\xe5\x17\x87\x22\xbd\x6c\xf1\x1e\x49\x4c\x60\xcc\xdd\x49\x22\x0b\x4e\xf6\x40\xb2\x45\x56\x7e\x42\x26\xa1\x97\x62\x1d\x69\x96\xc8\x5e\x39\x87\x1c\xe7\xa4\x09\x79\x52\x01\x99\x53\x0c\x03\xf2\x2c\x3a\x4c\xf0\x5e\xa5\x93\x04\xd3\x47\x56\xa5\x9b\x6c\x3d\x81\x93\xd2\x07\xcc\xc2\xc9\x16\x47\x95\x70\xb4\x86\x22\x3e\x74\x49\x8a\x6a\xf3\x0a\x37\xf2\xd9\x99\xd9\xd0\x47\xa6\x60\xc8\x3c\x19\x9e\x2e\x9a\x13\x8c\x3d\xa2\x8c\x2b\x46\x52\x46\x50\x69\x7f\x1f\x63\xe9\x37\x5b\x76\x04\x56\x5d\x79\xdf\x3b\x63\x14\xa4\x4a\x13\xd3\xe2\x25\x97\xac\x4f\x72\x4e\xa4\xad\x72\x4d\x55\x7f\xb5\xbb\x7b\xb3\xdb\x35\x79\x52\x9a\x9a\xfd\x7e\xff\xea\xcd\x53\x5e\x4d\x55\xef\x9a\xb7\xfb\x07\xd0\x1a\x0a\x6c\x7b\x4b\x65\xfc\x85\x72\x8c\x6e\xd0\xd1\xc5\x84\x91\xec\x30\x32\xc6\x44\x3d\xac\x79\x68\x71\x0c\x83\xa1\xac\x51\x76\x0a\x31\x08\xed\xac\x3e\xa0\x8f\x7a\xce\x70\x51\x19\xf8\x38\x67\x8a\xc7\xd2\xde\x6c\xff\x78\x50\x38\x69\xb0\x4a\x03\x31\xca\xa6\xe2\xa8\xdc\x4c\xf8\x60\x0d\x8f\xf2\xed\x03\x15\x1d\x43\x66\x15\x78\x13\x66\xdf\x9d\xf9\xb4\x56\xbe\xdc\x7d\xb3\xfe\xee\xfb\xf5\x4f\xfb\x3f\xaf\xbf\xbe\xfe\xeb\xec\xfb\xb2\x5a\x57\x86\x7a\x35\x3b\x6e\xee\x81\xf2\x64\x56\x89\x9b\xaa\xbe\xa9\x2f\x40\x0a\x45\xfd\xed\x25\x74\x5e\xfd\x6a\xb7\x5f\x3d\xb7\xe5\x5b\xdc\x7c\xc6\x28\x73\xb2\x61\xd8\xcc\xa9\xc8\x27\x7a\x9e\x44\x19\xba\x91\xef\xff\x0c\x96\xa1\xc7\x14\x3d\xc9\xe6\xea\x6a\x77\x57\x7d\xb1\x7f\xfd\x18\xc3\x7b\x0a\x85\xd6\xf6\xc5\x7a\xbd\x79\xdd\xae\xd7\x9f\xe2\x4f\x89\xa6\x14\xf5\x62\xfb\xe1\xe7\x77\xbf\xfe\xf6\xcb\x8f\x9b\xd7\xa5\xa9\xcf\xe7\x3f\xd7\x7a\x59\xe9\x6d\x5d\x7f\xc2\xce\x85\x5e\x22\xf9\x60\xa7\xe5\xee\xdd\xde\x6e\x1e\xd1\x8b\xc3\xf7\xf0\x5c\x66\x3a\x0f\xd2\xbb\x51\xa5\xc7\x4f\xef\xe9\x3c\x91\xfc\x92\xc6\xf6\xbc\xba\x8f\x87\xf3\x42\xf8\xab\xe7\x6c\xce\x7a\xcb\xeb\x65\xc3\x9b\x0b\xf5\xff\x9d\xa3\x0d\xda\xcd\xa6\x5c\xf2\xdf\xd5\x51\x9d\xc3\xfe\x17\x6e\x7c\x72\xf4\x0f\xd4\x3e\x37\xfd\x4f\x66\x3a\xe7\x7a\xb5\xfa\x3b\x00\x00\xff\xff\x01\xde\xaf\x06\x92\x06\x00\x00")
func runtimeSyntaxHtmlYamlBytes() ([]byte, error) {
return bindataRead(