shithub: orca

Download patch

ref: 655c2961166d94e374c6a83d69da0a0f3bea835c
parent: efef34cd846aef10eeb88237481c244b63a2737a
author: cancel <cancel@cancel.fm>
date: Wed Dec 5 11:00:54 EST 2018

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -397,7 +397,7 @@
   if (delta_h != 0) {
     Isz n_h;
     if (delta_h > 0) {
-      n_h = (((Isz)field_h - 1) / (Isz)ruler_y) + delta_h;
+      n_h = ((Isz)field_h - 1) / (Isz)ruler_y + delta_h;
     } else {
       n_h = ((Isz)field_h - 2) / (Isz)ruler_y + delta_h + 1;
     }
@@ -407,7 +407,7 @@
   if (delta_w != 0) {
     Isz n_w;
     if (delta_w > 0) {
-      n_w = (((Isz)field_w - 1) / (Isz)ruler_x) + delta_w;
+      n_w = ((Isz)field_w - 1) / (Isz)ruler_x + delta_w;
     } else {
       n_w = ((Isz)field_w - 2) / (Isz)ruler_x + delta_w + 1;
     }