C code cleanup; src/textadept.c
Added split views in the terminal version thanks to Chris Emerson.