Skip to content

Commit a99f595

Browse files
committed
Properly set default hash
1 parent 240cfe2 commit a99f595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/unicode/display_width.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def self.width_frame(string, options)
7272
if options[:emoji] == false
7373
res = 0
7474
else
75-
emoji_options = ( options[:emoji] == true || !options ) ?
75+
emoji_options = ( options[:emoji] == true || !options || !options[:emoji] ) ?
7676
DEFAULT_EMOJI_OPTIONS :
7777
options[:emoji]
7878
res, string = emoji_width(string, **emoji_options)

0 commit comments

Comments
 (0)