diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-02-04 18:08:58 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-02-04 18:25:58 +0100 |
| commit | 05067a24028eaedae01beb248c4409dc5d980862 (patch) | |
| tree | 96e0a29d3f4ecab9703754d86c3439c5e3479d5b /vis-digraph.c | |
| parent | 17b83db3c57682991c188f0338bebe521408917a (diff) | |
| download | vis-05067a24028eaedae01beb248c4409dc5d980862.tar.gz vis-05067a24028eaedae01beb248c4409dc5d980862.tar.xz | |
vis: make core code more robust
The core vis code was originally written under the assumption that there
always exists at least one window. However, when being called from the
Lua configuration file during start up this is not yet the case.
In general, Lua code should always be placed within appropriate event
handlers e.g. vis.events.INIT for global configuration. Invoking API
functions depending on an active window from top level statements is
not supported. Where before the editor simply crashed, these changes
turn such code sections into NOPs.
Fix #561
Diffstat (limited to 'vis-digraph.c')
0 files changed, 0 insertions, 0 deletions
