(fix): fix completions width for Helm users (#2040)

This commit is contained in:
Andreas Stuhlmüller
2022-01-15 18:24:52 -08:00
committed by GitHub
parent 6170cc9928
commit 001de3a874
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,10 @@
# Changelog
## TBD
### Added
### Removed
### Fixed
### Changed
- [#2040](https://github.com/org-roam/org-roam/pull/2040) completions: fix completions display-width for Helm users
## 2.2.0
### Added

View File

@ -545,7 +545,8 @@ TEMPLATE is the processed template used to format the entry."
(let ((candidate-main (org-roam-node--format-entry
template
node
(1- (frame-width)))))
(1- (if (bufferp (current-buffer))
(window-width) (frame-width))))))
(cons (propertize candidate-main 'node node) node)))
(defun org-roam-node--format-entry (template node &optional width)