Skip to content

Commit

Permalink
Add wcswidth to safe_builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Oct 19, 2024
1 parent 4644ab3 commit ee4b890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kitty/tab_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
set_tab_bar_render_data,
update_tab_bar_edge_colors,
viewport_for_window,
wcswidth,
)
from .rgb import alpha_blend, color_as_sgr, color_from_int, to_color
from .types import WindowGeometry, run_once
Expand Down Expand Up @@ -221,6 +222,7 @@ def active_oldest_exe(self) -> str:

safe_builtins = {
'max': max, 'min': min, 'str': str, 'repr': repr, 'abs': abs, 'len': len, 'chr': chr, 'ord': ord, 're': re,
'wcswidth': wcswidth,
}


Expand Down

0 comments on commit ee4b890

Please sign in to comment.