Check $VISUAL and $EDITOR when looking for editor
commitcc2d7adb7a89d909a26b23fe668e0681ec7d502e
authorOlly Betts <olly@survex.com>
Sat, 31 Dec 2016 22:15:35 +0000 (1 11:15 +1300)
committerOlly Betts <olly@survex.com>
Sat, 31 Dec 2016 22:23:43 +0000 (1 11:23 +1300)
tree092fa42dfbcb96cb6ac67e10258f7348552098d4
parent85c1767b31a9c06d4de0a0c2b3044cfdf54ca015
Check $VISUAL and $EDITOR when looking for editor

Suggested by Wookey.

The specified editor may have a GUI or need to run in a terminal, so it
seems we have to special case each editor supported.  This also means we
can pass extra options needed to position the cursor on the
appropriate line/column.

Currently these editors are supported:
gvim, vim, gedit, pluma, emacs, nano, jed, kate
src/cavernlog.cc