Skip to content

Commit

Permalink
Hopefully fix issue 978.
Browse files Browse the repository at this point in the history
I can't personally reproduce this but this seems like a safe patch regardless.
  • Loading branch information
Andersbakken committed Jul 30, 2017
1 parent 9d845e1 commit 61e335a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helm-rtags.el
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ Each element of the alist is a cons-cell of the form (DESCRIPTION . FUNCTION)."
(let* ((file-name (match-string 1 line))
(line-num (match-string 2 line))
(column-num (match-string 3 line))
(token-begin (string-to-number column-num))
(token-end (+ token-begin (length helm-rtags-token)))
(content (match-string 4 line))
(token-begin (string-to-number column-num))
(token-end (min (+ token-begin (length helm-rtags-token))
(length content)))
(content-prefix (substring content 0 token-begin))
(content-token (substring content token-begin token-end))
(content-suffix (substring content token-end (length content))))
Expand Down

0 comments on commit 61e335a

Please sign in to comment.