mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Refactor hyperlink handling in fetch_string
This commit is contained in:
parent
b8589c30fe
commit
0c6928dce2
1 changed files with 1 additions and 2 deletions
|
@ -339,8 +339,7 @@ module ColorLS
|
|||
@count[increment] += 1
|
||||
value = increment == :folders ? @folders[key] : @files[key]
|
||||
logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..].to_i(16)].pack('U') }
|
||||
name = content.show
|
||||
name = make_link(content) if @hyperlink
|
||||
name = @hyperlink ? make_link(content) : content.show
|
||||
name += content.directory? && @indicator_style != 'none' ? '/' : ' '
|
||||
entry = "#{out_encode(logo)} #{out_encode(name)}"
|
||||
entry = entry.bright if !content.directory? && content.executable?
|
||||
|
|
Loading…
Reference in a new issue