better line wrapping in comint modes