Fix crash if document closed while custom command is executing
commit5d3b2f6269dc9151d9d72ab550539e6de37a439f
authorelextr <elextr@gmail.com>
Mon, 10 Feb 2014 01:19:45 +0000 (10 12:19 +1100)
committerelextr <elextr@gmail.com>
Mon, 10 Feb 2014 01:19:45 +0000 (10 12:19 +1100)
tree973bf9ec5224f2b66fc9e211d0391775a133a970
parent09c2315bc43778537db987aa38d54dd5bf97381d
Fix crash if document closed while custom command is executing

Custom command callback never checked that the doc was still valid.
Can still paste in the wrong doc if user closes and opens while
the command is running, but not crash.
src/tools.c