diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 8eacd05fa..bfb3262e6 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -802,7 +802,7 @@ pub struct WhitespaceCharacters { impl Default for WhitespaceCharacters { fn default() -> Self { Self { - space: '·', // U+00B7 + space: '·', // U+00B7 nbsp: '⍽', // U+237D nnbsp: '␣', // U+2423 tab: '→', // U+2192 diff --git a/helix-view/src/register.rs b/helix-view/src/register.rs index 5592c6afd..1e6680150 100644 --- a/helix-view/src/register.rs +++ b/helix-view/src/register.rs @@ -233,7 +233,9 @@ fn read_from_clipboard<'a>( // If we're pasting the same values that we just yanked, re-use // the saved values. This allows pasting multiple selections // even when yanked to a clipboard. - let Some(values) = saved_values else { return RegisterValues::new(iter::once(contents.into())) }; + let Some(values) = saved_values else { + return RegisterValues::new(iter::once(contents.into())); + }; if contents_are_saved(values, &contents) { RegisterValues::new(values.iter().map(Cow::from).rev())