fix #1580 Mouse SelectByLines does not select ending char