From ac1303f342bf6f72de7e8f1e6397c6d78135c000 Mon Sep 17 00:00:00 2001 From: makeworld Date: Sun, 27 Jun 2021 14:37:19 -0400 Subject: [PATCH] Linting: remove unneeded lines --- display/tab.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/display/tab.go b/display/tab.go index bdc4334..07ea53a 100644 --- a/display/tab.go +++ b/display/tab.go @@ -381,17 +381,7 @@ func (t *tab) applyScroll() { // scrollTo scrolls the current tab to specified position. Like // cview.TextView.ScrollTo but using the custom scrolling logic required by #196. func (t *tab) scrollTo(row, col int) { - // Logic copied from scrolling stuff around line 217. - height, width := t.view.GetBufferSize() - _, _, boxW, boxH := t.view.GetInnerRect() - - // Make boxW accurate by subtracting one if a scrollbar is covering the last - // column of text - if config.ScrollBar == cview.ScrollBarAlways || - (config.ScrollBar == cview.ScrollBarAuto && height > boxH) { - boxW-- - } // Keep row and col within limits