Simplify if.
@@ -2183,8 +2183,7 @@ impl State {
})
.collect();
- if Some(&highlights) != self.highlights_placed.get(&filename) {
- if self.is_nvim {
+ if Some(&highlights) != self.highlights_placed.get(&filename) && self.is_nvim {
let source = if let Some(source) = self.highlight_source {
source
} else {
@@ -2205,7 +2204,6 @@ impl State {
self.call::<_, Option<i8>>(None, "s:AddHighlights", json!([source, highlights]))?;
}
- }
info!("End {}", NOTIFICATION__HandleCursorMoved);
Ok(())
