| 3561 | } |
| 3562 | |
| 3563 | void PythonEditor::setReadOnly(bool readonly) { |
| 3564 | impl_->read_only = readonly; |
| 3565 | if (impl_->buffer != nullptr) { |
| 3566 | impl_->buffer->SetFileFlags(Zep::FileFlags::ReadOnly, readonly); |
| 3567 | } |
| 3568 | if (readonly) { |
| 3569 | impl_->completion.clear(); |
| 3570 | } |
| 3571 | } |
| 3572 | |
| 3573 | bool PythonEditor::isReadOnly() const { |
| 3574 | return impl_->read_only; |
no test coverage detected