You are highlighting the whole line here. Is that what you want? Maybe the content of the text edit is a single line?