summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llm-tools-hl.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/llm-tools-hl.el b/llm-tools-hl.el
index 4bf3a6e..5a984e8 100644
--- a/llm-tools-hl.el
+++ b/llm-tools-hl.el
@@ -55,7 +55,8 @@ Taken from https://github.com/can1357/oh-my-pi.
55Precisely: https://raw.githubusercontent.com/can1357/oh-my-pi/85003ca/packages/coding-agent/src/hashline/bigrams.json") 55Precisely: https://raw.githubusercontent.com/can1357/oh-my-pi/85003ca/packages/coding-agent/src/hashline/bigrams.json")
56 56
57(defun llm-tools--hl-hash (line) 57(defun llm-tools--hl-hash (line)
58 (elt llm-tools--hl-bigrams (% (sxhash line) 647))) 58 ;; logand is to force unsigned number
59 (elt llm-tools--hl-bigrams (% (logand (sxhash line) #xffffffff) 647)))
59 60
60(defun llm-tools--hl-file-lines (file &optional beg end) 61(defun llm-tools--hl-file-lines (file &optional beg end)
61 "Return FILE contents as a list of strings. 62 "Return FILE contents as a list of strings.