Skip to content

Commit ee4b890

Browse files
committed
Add wcswidth to safe_builtins
1 parent 4644ab3 commit ee4b890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kitty/tab_bar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
set_tab_bar_render_data,
2828
update_tab_bar_edge_colors,
2929
viewport_for_window,
30+
wcswidth,
3031
)
3132
from .rgb import alpha_blend, color_as_sgr, color_from_int, to_color
3233
from .types import WindowGeometry, run_once
@@ -221,6 +222,7 @@ def active_oldest_exe(self) -> str:
221222

222223
safe_builtins = {
223224
'max': max, 'min': min, 'str': str, 'repr': repr, 'abs': abs, 'len': len, 'chr': chr, 'ord': ord, 're': re,
225+
'wcswidth': wcswidth,
224226
}
225227

226228

0 commit comments

Comments
 (0)