Skip to content

Commit

Permalink
Use a smarter window name length limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
spijet committed May 16, 2019
1 parent 1b420dc commit 46eb361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize
end

def self.limit(line)
line.length > 80 ? line[0..80] + '…' : line
line.length > 80 ? line[0..60].gsub(/\s\w+\s*$/, '…') : line
end

def watch
Expand Down

0 comments on commit 46eb361

Please sign in to comment.