Skip to content

Commit 271c2f5

Browse files
Merge branch 'fix/4131' into dev
2 parents 19eeab7 + d089d3e commit 271c2f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/buffer/buffer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ func (b *Buffer) WordAt(loc Loc) []byte {
690690
// Shared returns if there are other buffers with the same file as this buffer
691691
func (b *Buffer) Shared() bool {
692692
for _, buf := range OpenBuffers {
693+
if buf == nil {
694+
continue
695+
}
693696
if buf != b && buf.SharedBuffer == b.SharedBuffer {
694697
return true
695698
}

0 commit comments

Comments
 (0)