fix(#1575): fix display of non-ASCII in unlinked references section (#1616)

Non-ASCII characters are displayed incorrectly because
`org-roam-unlinked-references-preview-line` uses
`insert-file-contents-literally` which ignores the encoding.

Use `insert-file-contents` which does the right thing.

fixes #1575
This commit is contained in:
Alexey Shmalko
2021-07-19 05:36:21 +03:00
committed by GitHub
parent 6cbd4ad3e8
commit a529b20a81

View File

@@ -410,7 +410,7 @@ If ROW, move to the row, and if COL move to the COL."
"Return the preview line from FILE.
This is the ROW within FILE."
(with-temp-buffer
(insert-file-contents-literally file)
(insert-file-contents file)
(forward-line (1- row))
(buffer-substring-no-properties
(save-excursion