Fixed corner case for highlighting issue
Browse files- actions/actions.py +1 -1
actions/actions.py
CHANGED
|
@@ -120,7 +120,7 @@ def highlight(fulltext, snippet):
|
|
| 120 |
next_pos = pos + len(line)
|
| 121 |
|
| 122 |
color_start = pos <= start < next_pos
|
| 123 |
-
color_end = pos <= end < next_pos
|
| 124 |
|
| 125 |
if color_start and color_end:
|
| 126 |
start_line = end_line = x
|
|
|
|
| 120 |
next_pos = pos + len(line)
|
| 121 |
|
| 122 |
color_start = pos <= start < next_pos
|
| 123 |
+
color_end = pos <= end <= next_pos
|
| 124 |
|
| 125 |
if color_start and color_end:
|
| 126 |
start_line = end_line = x
|