blob: 1b4dba10604aa856ea01b526982c3af867b11734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff -Naur orig/cmake-ide.el new/cmake-ide.el
--- orig/cmake-ide.el 2019-01-08 21:08:17.718818451 +0100
+++ new/cmake-ide.el 2019-01-08 21:08:28.512074733 +0100
@@ -41,7 +41,6 @@
(require 'json)
(require 'find-file)
-(require 'levenshtein)
(require 'cl-lib)
(require 'seq)
(require 's)
@@ -1076,7 +1075,7 @@
(defun cide--file-distance (dir object)
"Return the distance between DIR and OBJECT's file."
- (levenshtein-distance dir (file-name-directory (cide--idb-obj-get object 'file))))
+ (string-distance dir (file-name-directory (cide--idb-obj-get object 'file))))
(defun cide--idb-all-objs (idb)
"Return a list of IDB entries."
|