MCPcopy
hub / github.com/micro-editor/micro / Shared

Method Shared

internal/buffer/buffer.go:687–694  ·  view source on GitHub ↗

Shared returns if there are other buffers with the same file as this buffer

()

Source from the content-addressed store, hash-verified

685
686// Shared returns if there are other buffers with the same file as this buffer
687func (b *Buffer) Shared() bool {
688 for _, buf := range OpenBuffers {
689 if buf != b && buf.SharedBuffer == b.SharedBuffer {
690 return true
691 }
692 }
693 return false
694}
695
696// Modified returns if this buffer has been modified since
697// being opened

Callers 3

QuitMethod · 0.80
OpenCmdMethod · 0.80
TermCmdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected