Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tlib#cache#Filename(): Use adler32 again

  • Loading branch information...
commit ebac2c3be4f2097c876e3b785af8eb2b7019d685 1 parent 77a7da1
Tom Link authored

Showing 1 changed file with 2 additions and 6 deletions. Show diff stats Hide diff stats

  1. 8  autoload/tlib/cache.vim
8  autoload/tlib/cache.vim
@@ -4,7 +4,7 @@
4 4
 " @License:     GPL (see http://www.gnu.org/licenses/gpl.txt)
5 5
 " @Created:     2007-06-30.
6 6
 " @Last Change: 2012-12-03.
7  
-" @Revision:    0.1.216
  7
+" @Revision:    0.1.217
8 8
 
9 9
 
10 10
 " |tlib#cache#Purge()|: Remove cache files older than N days.
@@ -93,11 +93,7 @@ function! tlib#cache#Filename(type, ...) "{{{3
93 93
     endif
94 94
     let cache_file = tlib#file#Join([dir, file])
95 95
     if len(cache_file) > g:tlib#cache#max_filename
96  
-        let shortfilename = pathshorten(file)
97  
-        let shortfilename .= '_'. tlib#hash#CRC32B(file)
98  
-        " if exists('*or')
99  
-        "     let shortfilename .= '_'. tlib#hash#Adler32(file)
100  
-        " endif
  96
+        let shortfilename = pathshorten(file) .'_'. tlib#hash#Adler32(file)
101 97
         let cache_file = tlib#cache#Filename(a:type, shortfilename, mkdir, dir0)
102 98
     endif
103 99
     " TLogVAR cache_file

0 notes on commit ebac2c3

Please sign in to comment.
Something went wrong with that request. Please try again.