| 258 | } |
| 259 | |
| 260 | std::vector<ZepWindow*> ZepEditor::FindBufferWindows(const ZepBuffer* pBuffer) const |
| 261 | { |
| 262 | std::vector<ZepWindow*> bufferWindows; |
| 263 | for (auto& tab : m_tabWindows) |
| 264 | { |
| 265 | for (auto& win : tab->GetWindows()) |
| 266 | { |
| 267 | if (&win->GetBuffer() == pBuffer) |
| 268 | { |
| 269 | bufferWindows.push_back(win); |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | return bufferWindows; |
| 274 | } |
| 275 | |
| 276 | void ZepEditor::RemoveBuffer(ZepBuffer* pBuffer) |
| 277 | { |