We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85692f4 + 6632fe0 commit 0aa90feCopy full SHA for 0aa90fe
1 file changed
lib/unicode/display_width/emoji_support.rb
@@ -1,5 +1,4 @@
1
-# require "rbconfig"
2
-# RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # windows
+# frozen_string_literal: true
3
4
module Unicode
5
class DisplayWidth
@@ -13,6 +12,10 @@ module EmojiSupport
13
12
# Please note: Many terminals do not set any ENV vars,
14
# maybe CSI queries can help?
15
def self.recommended
+ @recommended ||= _recommended
16
+ end
17
+
18
+ def self._recommended
19
if ENV["CI"]
20
return :rqi
21
end
0 commit comments