Rename wrap setting to word_wrap

This commit is contained in:
Jeremy Soller 2023-11-01 09:44:11 -06:00
parent 27523ef3ea
commit 621e9d75eb
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
4 changed files with 12 additions and 10 deletions

View file

@ -45,9 +45,11 @@ impl Tab {
let mut editor = self.editor.lock().unwrap();
let mut font_system = FONT_SYSTEM.lock().unwrap();
let mut editor = editor.borrow_with(&mut font_system);
editor
.buffer_mut()
.set_wrap(if config.wrap { Wrap::Word } else { Wrap::None });
editor.buffer_mut().set_wrap(if config.word_wrap {
Wrap::Word
} else {
Wrap::None
});
}
pub fn open(&mut self, path: PathBuf) {