| 656 | } |
| 657 | |
| 658 | void ZepBuffer::SetFilePath(const ZepPath& path) |
| 659 | { |
| 660 | auto testPath = path; |
| 661 | if (GetEditor().GetFileSystem().Exists(testPath)) |
| 662 | { |
| 663 | testPath = GetEditor().GetFileSystem().Canonical(testPath); |
| 664 | } |
| 665 | |
| 666 | if (!GetEditor().GetFileSystem().Equivalent(testPath, m_filePath)) |
| 667 | { |
| 668 | m_filePath = testPath; |
| 669 | } |
| 670 | GetEditor().SetBufferSyntax(*this); |
| 671 | } |
| 672 | |
| 673 | // Remember that we updated the buffer and dirty the state |
| 674 | // Clients can use these values to figure out update times and dirty state |
no test coverage detected