Commit 19f1b6e1 authored by Fangrui Song's avatar Fangrui Song

Fix semantic highlighting

parent f0dcfaec
......@@ -293,11 +293,11 @@ If nil, disable semantic highlighting."
(cl-loop
for (start end face) in ranges do
(forward-line (- (car start) last-line-number))
(forward-char (cdr start))
(move-to-column (cdr start))
;; start of range
(setq range-start (point))
(forward-line (- (car end) (car start)))
(forward-char (cdr end))
(move-to-column (cdr end))
;; end of range
(setq range-end (point))
(cquery--make-sem-highlight (cons range-start range-end) buffer face)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment