mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
Add wcswidth to safe_builtins
This commit is contained in:
@@ -27,6 +27,7 @@ from .fast_data_types import (
|
|||||||
set_tab_bar_render_data,
|
set_tab_bar_render_data,
|
||||||
update_tab_bar_edge_colors,
|
update_tab_bar_edge_colors,
|
||||||
viewport_for_window,
|
viewport_for_window,
|
||||||
|
wcswidth,
|
||||||
)
|
)
|
||||||
from .rgb import alpha_blend, color_as_sgr, color_from_int, to_color
|
from .rgb import alpha_blend, color_as_sgr, color_from_int, to_color
|
||||||
from .types import WindowGeometry, run_once
|
from .types import WindowGeometry, run_once
|
||||||
@@ -221,6 +222,7 @@ class TabAccessor:
|
|||||||
|
|
||||||
safe_builtins = {
|
safe_builtins = {
|
||||||
'max': max, 'min': min, 'str': str, 'repr': repr, 'abs': abs, 'len': len, 'chr': chr, 'ord': ord, 're': re,
|
'max': max, 'min': min, 'str': str, 'repr': repr, 'abs': abs, 'len': len, 'chr': chr, 'ord': ord, 're': re,
|
||||||
|
'wcswidth': wcswidth,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user