Scenario:
This scenario is actually a reasonably common thing, because driver shows the error from the previous session on startup, and I've kinda trained myself to hit 'F4' to clear stale error messages. But I just hit 'F4' on an empty buffer and hit this problem.
How to clear error messages on quit? I can't think of a good reliable way.. besides, if you quit while the error exists perhaps it should remain?
2SFUUNACWBGQBUQSLDC3L2L5QMDTEM56SEXRIB62RAF2VMASKYOQC
empty_editor = function(State)
if #State.lines == 0 then return true end
if #State.lines == 1 then
return State.lines[1].data == ''
end
return false
end