Less layering

This commit is contained in:
Kovid Goyal
2022-08-24 19:55:46 +05:30
parent 10d11bc749
commit 4ab5456ead
3 changed files with 37 additions and 12 deletions

View File

@@ -555,7 +555,10 @@ def gen_wcwidth() -> None:
p('\t\tdefault:\n\t\t\treturn 1;')
p('\t}')
p('\treturn 1;\n}')
if for_go:
p('\t}')
else:
p('\treturn 1;\n}')
with create_header('kitty/wcwidth-std.h') as p, open('tools/tui/wcwidth-std.go', 'w') as gof:
gop = partial(print, file=gof)