summarylogtreecommitdiffstats
path: root/0001-Remove-unnecessary-braces-around-if-condition.patch
blob: 2eb29daee44ecfe709ff480a5dd826b7eb09b965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/src/bridge/ui_commands.rs b/src/bridge/ui_commands.rs
index 77f6774..79767b1 100644
--- a/src/bridge/ui_commands.rs
+++ b/src/bridge/ui_commands.rs
@@ -42,7 +42,7 @@ impl UiCommand {
                 action,
                 position: (grid_x, grid_y),
             } => {
-                if { EDITOR.lock().mouse_enabled } {
+                if EDITOR.lock().mouse_enabled {
                     nvim.input_mouse("left", &action, "", 0, grid_y as i64, grid_x as i64)
                         .await
                         .expect("Mouse Input Failed");
@@ -52,14 +52,14 @@ impl UiCommand {
                 direction,
                 position: (grid_x, grid_y),
             } => {
-                if { EDITOR.lock().mouse_enabled } {
+                if EDITOR.lock().mouse_enabled {
                     nvim.input_mouse("wheel", &direction, "", 0, grid_y as i64, grid_x as i64)
                         .await
                         .expect("Mouse Scroll Failed");
                 }
             }
             UiCommand::Drag(grid_x, grid_y) => {
-                if { EDITOR.lock().mouse_enabled } {
+                if EDITOR.lock().mouse_enabled {
                     nvim.input_mouse("left", "drag", "", 0, grid_y as i64, grid_x as i64)
                         .await
                         .expect("Mouse Drag Failed");