When typing a multi-line input (e.g. `echo foo\<CR>`) BUFFER can be empty, even though the entire input is not. Fix this by checking if PREBUFFER and BUFFER are empty.
When typing a multi-line input (e.g. `echo foo\<CR>`) BUFFER can be empty, even though the entire input is not. Fix this by checking if PREBUFFER and BUFFER are empty.