improved CUA and visual-line-mode