4505 Commits

Author SHA1 Message Date
Mitchell Hashimoto
7548ac368e config: note that tab restore with titlebar tabs on macos 13 is broken 2024-02-12 21:30:24 -08:00
Mitchell Hashimoto
e95b1707c1 core: fallback to heap allocation for long preedit inputs
Fixes #1514

We previously required all preedit inputs to fit into the small copied
message size. That's true for 99% of all inputs, but if a long pre-edit
input comes in, this may not be true. We should try the small array
fast-path but fall back to heap allocation if we must.
2024-02-12 21:21:35 -08:00
Mitchell Hashimoto
6acf2b40af terminal/kitty-gfx: mistaken logic 2024-02-12 19:35:02 -08:00
Mitchell Hashimoto
9193cfa6d2 style nit 2024-02-12 19:31:58 -08:00
Nameless
28ff9f7310 bug: std.os.realpath on non-windows asserts no nulls, make an error 2024-02-12 19:31:17 -08:00
Mitchell Hashimoto
739fc746bf terminal: OSC parses 4 with empty string param without crashing 2024-02-12 19:30:04 -08:00
Mitchell Hashimoto
be0595d71d apprt/embedded: add occlusion state callback 2024-02-12 13:48:09 -08:00
Krzysztof Wolicki
af842591c5 Update usage of std.os.O 2024-02-12 20:11:02 +01:00
Mitchell Hashimoto
2f36fd4b5f input: ctrl ASCII uppercase behaves the same as ctrl lowercase
Fixes #1505

I verified this behavior with every other terminal and I've added test
cases for it. We previously had a test case to assert the opposite,
which is incorrect.
2024-02-11 14:28:53 -08:00
Mitchell Hashimoto
52f48147c5 Merge pull request #1499 from marler8997/fixWindowsTmpDir
os: remove UB, tmpDir is returning stack memory on Windows
2024-02-10 20:39:32 -08:00
Jonathan Marler
e1996ad1e5 os: remove UB, tmpDir is returning stack memory on Windows
On Windows, the tmpDir function is currently using a buffer on the stack
to convert the WTF16-encoded environment variable value "TMP" to utf8
and then returns it as a slice...but that stack buffer is no longer valid
when the function returns.  This was causing the "image load...temporary
file" test to fail on Windows.

I've updated the function to take an allocator but it only uses
the allocator on Windows.  No allocation is needed on other platforms
because they return environment variables that are already utf8 (ascii)
encoded, and the OS pre-allocates all environment variables in the process.
To keep the conditional that determines when allocation is required, I
added the `freeTmpDir` function.
2024-02-10 21:09:05 -07:00
Qwerasd
58b925d4c3 fix(bench): update std options format 2024-02-10 22:20:24 -05:00
Mitchell Hashimoto
74c26d1ef0 Merge pull request #1489 from mitchellh/update-zig
update zig
2024-02-10 17:48:50 -08:00
Mitchell Hashimoto
004405ccf9 terminal: only apply VS15/16 to emoji
Fixes #1482
2024-02-10 17:26:45 -08:00
Mitchell Hashimoto
8456e9d7f7 command: io_mode removed for windows 2024-02-10 16:58:45 -08:00
Mitchell Hashimoto
de228d99dd logfn doesn't need to be pub 2024-02-10 16:45:00 -08:00
Jakub Konka
e32b4849d1 fix for latest breaking libstd changes to Options 2024-02-10 16:43:57 -08:00
Mitchell Hashimoto
f7c945c4a7 Merge pull request #1494 from mitchellh/grapheme-break
Optimized grapheme break detection (6x speedup)
2024-02-10 07:54:06 -08:00
Mitchell Hashimoto
5275d44e7d unicode: precompute grapheme break data 2024-02-09 20:50:13 -08:00
Mitchell Hashimoto
6f8b4204b9 terminal: use new grapheme break algo 2024-02-09 20:31:20 -08:00
Mitchell Hashimoto
132fbb3a46 unicode: use packed struct for break state 2024-02-09 20:29:36 -08:00
Mitchell Hashimoto
c47ad97f62 unicode: remove unused 2024-02-09 20:23:29 -08:00
Mitchell Hashimoto
5f3574a4bf unicode: direct port of ziglyph to start 2024-02-09 19:44:57 -08:00
Mitchell Hashimoto
9f487810c1 Merge pull request #1488 from erf/replace-ziglyph
Replace ziglyph.codePointWidth with unicode.table.get(cp).width
2024-02-09 14:13:45 -08:00
Gregory Anders
21412847c7 Reset status display after a full reset 2024-02-09 15:50:50 -06:00
Erlend Lind Madsen
928d338c2b preeditCallback(self): remove fast path codepoint width 2024-02-09 21:44:54 +01:00
Mitchell Hashimoto
0632410857 unicode: get grapheme boundary class 2024-02-09 12:22:23 -08:00
Erlend Lind Madsen
ca426a4267 remove unused ziglyph import 2024-02-09 20:05:11 +01:00
Erlend Lind Madsen
cf0d498e75 replace ziglyph codePointWidth -> table.get 2024-02-09 20:04:51 +01:00
Jeffrey C. Ollie
f910bcd4ca bump eval branch quota for newer Zig versions 2024-02-09 12:18:59 -06:00
Mitchell Hashimoto
6437623500 bench/grapheme-break 2024-02-09 09:12:05 -08:00
Mitchell Hashimoto
fc459ad827 Merge pull request #1486 from mitchellh/unilut
Use precomputed lookup tables for even faster codepoint width computations
2024-02-08 21:51:33 -08:00
Mitchell Hashimoto
8d891fb05c terminal: fast-path ASCII on char width 2024-02-08 21:28:14 -08:00
Mitchell Hashimoto
c838bfc1c1 terminal: swap to table implementatino 2024-02-08 21:17:30 -08:00
Mitchell Hashimoto
4834b8e925 remove utf8proc 2024-02-08 21:11:11 -08:00
Mitchell Hashimoto
f6e694bf80 bench: update codepoint-width 2024-02-08 21:10:06 -08:00
Mitchell Hashimoto
9755d0696e unicode: generate our own lookup tables 2024-02-08 21:01:11 -08:00
Qwerasd
777ecffe6b fix(terminal/stream): fix OOB read and integer overflow 2024-02-08 22:34:21 -05:00
Qwerasd
68c0813397 terminal/stream: Added ESC parsing fast tracks 2024-02-08 21:49:58 -05:00
Mitchell Hashimoto
4ae41579da add utf8proc back for bench 2024-02-08 13:21:36 -08:00
Qwerasd
f8c544c119 terminal: stream/parser changes 2024-02-07 19:08:34 -05:00
Mitchell Hashimoto
ae50f2ec97 Merge pull request #1481 from mitchellh/codewidth
SIMD Codepoint Width Implementation
2024-02-07 15:35:20 -08:00
Mitchell Hashimoto
4e2502c11e simd/codepoint-width: assertions for avx512 padding 2024-02-07 15:23:43 -08:00
Mitchell Hashimoto
e5c7d4e3ee simd: increase padding for avx 2024-02-07 14:43:08 -08:00
Mitchell Hashimoto
ae74117269 simd: use less vector ops for 16-bit 2024-02-07 14:31:06 -08:00
Mitchell Hashimoto
a69d3c7f1c simd/codepoint-width: split by 16-bit 2024-02-07 14:04:48 -08:00
Mitchell Hashimoto
17dc64053e terminal: swap codepointwidth implementations 2024-02-07 09:38:17 -08:00
Mitchell Hashimoto
3c31217f3c simd: minor tweaks 2024-02-07 09:28:56 -08:00
Mitchell Hashimoto
46a887578a simd: remove ziglyph fallback 2024-02-07 09:21:33 -08:00
Mitchell Hashimoto
697fbe21ec simd/codepoint-width: reinclude correct file 2024-02-07 09:18:02 -08:00