Skip to content

Add mame crate dependency and migrate from unicode-width#9

Merged
sile merged 1 commit intomainfrom
introduce-mame
Aug 30, 2025
Merged

Add mame crate dependency and migrate from unicode-width#9
sile merged 1 commit intomainfrom
introduce-mame

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Aug 30, 2025

No description provided.

@sile sile requested a review from Copilot August 30, 2025 06:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the codebase from the unicode-width crate to the mame crate for handling terminal character width calculations. The change replaces Unicode width estimation functionality across multiple files.

  • Removes dependency on unicode-width crate and adds mame crate
  • Replaces UnicodeWidthStr and UnicodeWidthChar trait usages with mame::terminal functions
  • Updates custom UnicodeCharWidthEstimator implementation to use mame::terminal::UnicodeTerminalFrame

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Cargo.toml Updates dependencies: removes unicode-width, adds mame 0.1.4
src/canvas.rs Removes custom char width estimator, replaces with mame terminal frame and functions
src/git.rs Replaces UnicodeWidthStr usage with mame::terminal::str_cols function
src/widget_command_editor.rs Migrates string width calculation to mame::terminal::str_cols
src/widget_search_result.rs Updates string width calculations to use mame::terminal functions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sile sile merged commit 711750d into main Aug 30, 2025
9 checks passed
@sile sile deleted the introduce-mame branch August 30, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants