Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions cortex-tui-framework/crates/cortex-tui-text/src/wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,32 +382,6 @@ fn is_word_break(grapheme: &str) -> bool {
false
}

/// Check if a character is a potential word break point (for CJK text).
///
/// CJK characters can break anywhere, so we treat them as word boundaries.
#[allow(dead_code)]
fn is_cjk_char(c: char) -> bool {
matches!(c as u32,
// CJK Unified Ideographs
0x4E00..=0x9FFF |
// CJK Extension A
0x3400..=0x4DBF |
// CJK Extension B-F (surrogate pairs in UTF-16)
0x20000..=0x2A6DF |
0x2A700..=0x2B73F |
0x2B740..=0x2B81F |
0x2B820..=0x2CEAF |
0x2CEB0..=0x2EBEF |
// CJK Compatibility Ideographs
0xF900..=0xFAFF |
// Hiragana
0x3040..=0x309F |
// Katakana
0x30A0..=0x30FF |
// Hangul Syllables
0xAC00..=0xD7AF
)
}

/// Iterator that yields wrapped lines.
pub struct WrapIterator<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/cortex-compact/src/auto_compaction/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn timestamp_now() -> u64 {
/// Get current timestamp as formatted string for filenames.
pub fn chrono_timestamp() -> String {
let now = timestamp_now();
format!("{}", now)
now.to_string()
}

/// Estimate available disk space in bytes (platform-specific).
Expand Down
Loading
Loading