Skip to content

Commit

Permalink
Update alacritty/src/display/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Duerr <contact@christianduerr.com>
  • Loading branch information
kchibisov and chrisduerr authored Oct 15, 2024
1 parent 764db93 commit 372bb56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alacritty/src/display/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,7 @@ impl Display {

let ime_popup_point = match preedit.cursor_end_offset {
Some(cursor_end_offset) => {
// Regular edit happens when the start == end, thus use Beam for it, however
// when multiple characters are changed at once use the `HollowBlock`.
// Use hollow block when multiple characters are changed at once.
let (shape, width) = if let Some(width) =
NonZeroU32::new((cursor_end_offset.0 - cursor_end_offset.1) as u32)
{
Expand Down

0 comments on commit 372bb56

Please sign in to comment.