diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 23:25:13 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 23:25:13 +0800 |
| commit | 079eacb0f80b7b0d13b35544c382ac50fee9076d (patch) | |
| tree | 272a50872348d0c60a9a794083ea8a2182676a0b /src/tui/text.hh | |
| parent | 9bfcdbf2131ae6c08040226be6e92447db625b18 (diff) | |
| download | rwebbrowser-079eacb0f80b7b0d13b35544c382ac50fee9076d.tar.gz rwebbrowser-079eacb0f80b7b0d13b35544c382ac50fee9076d.tar.xz | |
Diffstat (limited to 'src/tui/text.hh')
| -rw-r--r-- | src/tui/text.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tui/text.hh b/src/tui/text.hh index eb0a2bb..99fd7c9 100644 --- a/src/tui/text.hh +++ b/src/tui/text.hh @@ -57,6 +57,8 @@ struct Grapheme struct TextAnalysis { std::vector<Grapheme> graphemes {}; + // All codepoints, including combining marks; an empty input is whitespace-only. + bool whitespace_only { true }; // Vim-style reading units: letters/numbers/underscore, punctuation runs, // individual ideographs. Whitespace is excluded; offsets remain UTF-8 bytes. std::vector<ByteRange> words {}; |
