Fallback to glyph wrapping if word wrapping does not fit
This commit is contained in:
parent
4609fc48df
commit
1403adb1aa
2 changed files with 2 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1095,7 +1095,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-text"
|
name = "cosmic-text"
|
||||||
version = "0.10.0"
|
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 = [
|
dependencies = [
|
||||||
"bitflags 2.4.2",
|
"bitflags 2.4.2",
|
||||||
"cosmic_undo_2",
|
"cosmic_undo_2",
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ impl EditorTab {
|
||||||
editor.set_tab_width(config.tab_width);
|
editor.set_tab_width(config.tab_width);
|
||||||
editor.with_buffer_mut(|buffer| {
|
editor.with_buffer_mut(|buffer| {
|
||||||
buffer.set_wrap(if config.word_wrap {
|
buffer.set_wrap(if config.word_wrap {
|
||||||
Wrap::Word
|
Wrap::WordOrGlyph
|
||||||
} else {
|
} else {
|
||||||
Wrap::None
|
Wrap::None
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue