From b5146e27f103523494fdec0272a084c18afe1a69 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 6 Jul 2023 13:59:05 +0200 Subject: select: simplify popCursorPos() --- src/buffer/select.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/buffer/select.nim') diff --git a/src/buffer/select.nim b/src/buffer/select.nim index 1b1993c5..f7afa4d9 100644 --- a/src/buffer/select.nim +++ b/src/buffer/select.nim @@ -195,9 +195,7 @@ proc pushCursorPos*(select: var Select) = select.bpos.add(select.hover) proc popCursorPos*(select: var Select, nojump = false) = - let was = select.hover - let got = select.bpos.pop() - select.hover = got + select.hover = select.bpos.pop() if not nojump: select.redraw = true -- cgit 1.4.1-2-gfad0