summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Hakulinen <ville.hakulinen@gmail.com>2020-07-23 13:54:37 +0300
committerVille Hakulinen <ville.hakulinen@gmail.com>2020-07-23 13:54:37 +0300
commit8c3f8471ffbf658c0a867e65ec73806f6c3e2cf5 (patch)
tree5ef97e50e7c95041034343160c46c8ef33547f06
parent161bd97706e54affa904e50e602dec4ce160bc77 (diff)
Update readme with animated cursor feature
-rw-r--r--README.md1
-rw-r--r--src/ui/state.rs4
2 files changed, 1 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1210868..48920e3 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ $ cargo build --no-default-features
* No electron (!), build on GTK.
* Ligatures
+* Animated cursor
* Custom cursor tooltip feature to display markdown documents.
Useful for implementing features like hover information or signature help
(see [gnvim-lsp](https://github.com/vhakulinen/gnvim-lsp)).
diff --git a/src/ui/state.rs b/src/ui/state.rs
index 2374d4c..14ad151 100644
--- a/src/ui/state.rs
+++ b/src/ui/state.rs
@@ -104,7 +104,6 @@ impl UIState {
Notify::GnvimEvent(event) => match event {
Ok(event) => self.handle_gnvim_event(&event, nvim),
Err(err) => {
- error!("Failed to parse notify: {}", err);
let nvim = nvim.clone();
let msg = format!(
"echom \"Failed to parse gnvim notify: '{}'\"",
@@ -138,10 +137,7 @@ impl UIState {
// ...so if the grid_id is not same as the self tells us,
// set the previous current grid to inactive self.
let grid = self.grids.get(&self.current_grid).unwrap();
-
grid.set_active(false);
- //grid.tick(); // Trick the grid to invalide the cursor's rect.
-
self.current_grid = grid_id;
// And set the new current grid to active.