[[ Bug 12951 ]] Fix selection bug when previous line included in selection