| 287 | } |
| 288 | |
| 289 | ZepBuffer* ZepEditor::FindFileBuffer(const fs::path& filePath) { |
| 290 | auto& buffers = GetBuffers(); |
| 291 | for (auto& buff : buffers) { |
| 292 | if (m_pFileSystem->Equivalent(buff->GetFilePath(), filePath)) { |
| 293 | return buff.get(); |
| 294 | } |
| 295 | } |
| 296 | return nullptr; |
| 297 | } |
| 298 | |
| 299 | ZepBuffer* ZepEditor::GetFileBuffer(const fs::path& filePath, uint32_t fileFlags, bool create) { |
| 300 | auto path = GetFileSystem().Exists(filePath) ? GetFileSystem().Canonical(filePath) : filePath; |
nothing calls this directly
no test coverage detected