m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Merge branch 'master' into mouse

This commit is contained in:
Junegunn Choi
2014-01-30 03:14:13 +09:00
2 changed files with 14 additions and 5 deletions

2
fzf
View File

@@ -430,7 +430,7 @@ class FZF
if RUBY_VERSION.split('.').map { |e| e.rjust(3, '0') }.join > '001009'
@@wrx = Regexp.new '\p{Han}|\p{Katakana}|\p{Hiragana}|\p{Hangul}'
def width str
str.gsub(@@wrx, ' ').length
str.gsub(@@wrx, ' ').length rescue str.length
end
def trim str, len, left