Skip to content

Commit 26cb174

Browse files
committed
Improve Emoji support if recent unicode-display_width is available
1 parent cc02dda commit 26cb174

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Irbtools Changelog
22

3+
## Next (unreleased)
4+
5+
- Improve Emoji support if recent unicode-display_width is available
6+
37
## 4.1.0
48

59
- Fix command loading (was broken in previous version)

lib/irbtools/implementation.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ def configure_irb!
111111
add_command_aliases
112112
rename_ls_to_ils
113113
end
114+
115+
# Improve Emoji support if recent unicode-display_width is available
116+
if defined?(Reline) && defined?(Unicode::DisplayWidth) && Unicode::DisplayWidth::VERSION >= "3.0"
117+
require "unicode/display_width/reline_ext"
118+
end
114119
end
115120

116121
def set_propmt

0 commit comments

Comments
 (0)