Closed refi64 closed 8 years ago
After looking at it the problem is not that the Editor.insert
does not check the status (which is also a problem), but that the key presses and corresponding inserts are handled by the aullar view. So, we have to move down some read-only support into aullar, or add some kind of veto-notification thing.
Basically, I noticed that, if you run an external command with Howl, you can insert text into the
ProcessBuffer
, even though it's read-only. Interestingly, you CANNOT replace text...because it's read-only!This seems to be because
howl.Editor.insert
callsaullar.View.insert
, which always callsaullar.Buffer.insert
instead ofhowl.Buffer.insert
. This skips the check to make sure that the buffer is writable.