Shared returns if there are other buffers with the same file as this buffer
()
| 685 | |
| 686 | // Shared returns if there are other buffers with the same file as this buffer |
| 687 | func (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 |