From 83e4c4b66013248140af747e3e4e038eb9616d6a Mon Sep 17 00:00:00 2001 From: Nikolai Elich <6elich@informatik.uni-hamburg.de> Date: Sun, 5 Nov 2017 16:33:56 +0100 Subject: [PATCH] Fix Issue #80 --- lib/highlight-line-model.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/highlight-line-model.coffee b/lib/highlight-line-model.coffee index b0defc3..4ec785d 100644 --- a/lib/highlight-line-model.coffee +++ b/lib/highlight-line-model.coffee @@ -69,8 +69,9 @@ class HighlightLineView bottomLine = selectionRange.copy() topLine.end = topLine.start - bottomLine.start = new Point(bottomLine.end.row - 1, - bottomLine.end.column) + bottomLine.start = bottomLine.end + if bottomLine.start.column == 0 + bottomLine.start.row -= 1 style = atom.config.get "highlight-line.underline"