in characterwise mode, trailing \n is not stripped, fixes #23
fix an error with incorrect highlighting for characterwise selection
updated doc