]> git.lizzy.rs Git - micro.git/commitdiff
Small simplification
authorZachary Yedidia <zyedidia@gmail.com>
Sun, 28 Jan 2018 20:15:23 +0000 (15:15 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Sun, 28 Jan 2018 20:15:23 +0000 (15:15 -0500)
cmd/micro/buffer.go

index a2d95dda8a2c56a164ebbb3ce56910e97b1ef3d9..d9a0e05352aaebd94c1e4c701ce581f9fa3b0b5f 100644 (file)
@@ -654,9 +654,9 @@ func (b *Buffer) clearCursors() {
 }
 
 var bracePairs = [][2]rune{
-       [2]rune{'(', ')'},
-       [2]rune{'{', '}'},
-       [2]rune{'[', ']'},
+       {'(', ')'},
+       {'{', '}'},
+       {'[', ']'},
 }
 
 // FindMatchingBrace returns the location in the buffer of the matching bracket