We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
findBuffer()
AbsPath
1 parent 8b3e5ea commit 9191df8Copy full SHA for 9191df8
1 file changed
cmd/micro/micro_test.go
@@ -4,6 +4,7 @@ import (
4
"fmt"
5
"log"
6
"os"
7
+ "path/filepath"
8
"testing"
9
10
"github.com/go-errors/errors"
@@ -157,8 +158,10 @@ func openFile(file string) {
157
158
159
func findBuffer(file string) *buffer.Buffer {
160
var buf *buffer.Buffer
161
+ file, _ = filepath.EvalSymlinks(file)
162
+ file, _ = filepath.Abs(file)
163
for _, b := range buffer.OpenBuffers {
- if b.Path == file {
164
+ if b.AbsPath == file {
165
buf = b
166
}
167
0 commit comments