diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-11 09:42:37 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-11 09:42:37 +0100 |
commit | 19b023b221b03a0e322696be8234170ab90984ec (patch) | |
tree | 0ce99991f275406ebb065c4f844bca9be34cd527 /source/helper.c | |
parent | 4452b08288c25fa833e22c97b57045ec5888b547 (diff) |
Split sorting option. one for sorting. One to force levenshtein.
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c index 11073d66..72105352 100644 --- a/source/helper.c +++ b/source/helper.c @@ -656,10 +656,8 @@ char *rofi_expand_path ( const char *input ) /** Return the minimum value of a,b,c */ #define MIN3( a, b, c ) ( ( a ) < ( b ) ? ( ( a ) < ( c ) ? ( a ) : ( c ) ) : ( ( b ) < ( c ) ? ( b ) : ( c ) ) ) -unsigned int levenshtein ( const char *needle, const char *haystack ) +unsigned int levenshtein ( const char *needle, const glong needlelen, const char *haystack, const glong haystacklen ) { - const size_t needlelen = g_utf8_strlen ( needle, -1 ); - const size_t haystacklen = g_utf8_strlen ( haystack, -1 ); unsigned int column[needlelen + 1]; for ( unsigned int y = 0; y <= needlelen; y++ ) { column[y] = y; |