branch: elpa/javelin
commit 29b979b4d3755024587e27b115fa236e2bff39f2
Author: Damian Barabonkov <[email protected]>
Commit: Damian Barabonkov <[email protected]>

    fix: Serialize sorted positions as JSON array
---
 harpoon.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/harpoon.el b/harpoon.el
index 910127388f5..b6f61f13321 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -143,7 +143,7 @@ DATA should be a list of alists with `harpoon_position' and 
`filepath' keys.
 Entries are sorted by `harpoon_position' in increasing order before writing.
 Creates the cache file if it does not exist."
   (harpoon--ensure-cache-file)
-  (f-write-text (json-serialize (harpoon--sort-positions data)) 'utf-8 
(harpoon--cache-file-name)))
+  (f-write-text (json-serialize (vconcat (harpoon--sort-positions data))) 
'utf-8 (harpoon--cache-file-name)))
 
 (defun harpoon--get-filepath-by-position (harpoon-position)
   "Get the filepath for a given HARPOON-POSITION.

Reply via email to