diff options
author | hut <hut@lavabit.com> | 2009-07-03 17:19:52 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-03 17:19:52 +0200 |
commit | f8634dd6d2477d1871764982fe8d55f2003ab938 (patch) | |
tree | 5d278f4fd3538a2d990cd78450d0e883d0fbce1d /code/directory.rb | |
parent | 27ebfe639466906a9bdaeb3a8ade280e07921122 (diff) | |
download | ranger-f8634dd6d2477d1871764982fe8d55f2003ab938.tar.gz |
option to show ascii only and replace non-ascii with *
Diffstat (limited to 'code/directory.rb')
-rw-r--r-- | code/directory.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/directory.rb b/code/directory.rb index c738b995..646a15df 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -142,7 +142,7 @@ class Directory @width = 0 @files[pos, lines-2].each_with_index do |fn, ix| ix += pos - sz = fn.basename.size + fn.infostring.size + 2 + sz = fn.displayname.size + fn.infostring.size + 2 @width = sz + 3 if @width < sz end # @width = @files[pos,lines-2].map{|x| File.basename(x).size}.max |