branch: externals/osm
commit 8e8ec69e393ed8b37bfd032441d76066cce49444
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Delete dups from history
---
osm.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/osm.el b/osm.el
index 3a956bad75..4c4f61faeb 100644
--- a/osm.el
+++ b/osm.el
@@ -1698,8 +1698,9 @@ When called interactively, call the function `osm-home'."
(current-local-map)))))
(completing-read prompt
(osm--table-with-metadata
- osm--search-history '((display-sort-function . identity)
- (cycle-sort-function . identity)))
+ (delete-dups (copy-sequence osm--search-history))
+ '((display-sort-function . identity)
+ (cycle-sort-function . identity)))
nil nil nil 'osm--search-history)))
(defun osm--search-select (needle lucky)