bugfix: vi-style blank lines and resizes

Need to make sure we never write past end of window

	modified:   bufferslist.rb
	modified:   filebuffer.rb