forked from joejulian/gio
f88a8216e9
If you created an Editor and immediately SetCaret, it panicked because e.lines was nil and it looked at e.lines[0]. - Add e.makeValid at the top of SetCaret. - Add a test case for this situation. Signed-off-by: Larry Clapp <larry@theclapp.org>