From 1403adb1aa4839b2d861c0ad3b0ab7bb786d043a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 2 Feb 2024 10:43:20 -0700 Subject: [PATCH] Fallback to glyph wrapping if word wrapping does not fit --- Cargo.lock | 2 +- src/tab.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1089b81..689f548 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1095,7 +1095,7 @@ dependencies = [ [[package]] name = "cosmic-text" version = "0.10.0" -source = "git+https://github.com/pop-os/cosmic-text#1b025ae56e0122cff5798b9f54fc56d47a182d2b" +source = "git+https://github.com/pop-os/cosmic-text#cc75bb66b40794702ebc9fc9e30b1b29d7438bb5" dependencies = [ "bitflags 2.4.2", "cosmic_undo_2", diff --git a/src/tab.rs b/src/tab.rs index 41e49cd..f4883c5 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -82,7 +82,7 @@ impl EditorTab { editor.set_tab_width(config.tab_width); editor.with_buffer_mut(|buffer| { buffer.set_wrap(if config.word_wrap { - Wrap::Word + Wrap::WordOrGlyph } else { Wrap::None })