From 3f05cfcdb6878bd8bb82862cf502b252619e9650 Mon Sep 17 00:00:00 2001 From: solecki <38192622+solecki@users.noreply.github.com> Date: Sun, 15 Apr 2018 00:53:41 +0200 Subject: [PATCH] Add comments --- lib/ex.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ex.coffee b/lib/ex.coffee index bfc99c1..49166ec 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -475,6 +475,7 @@ class Ex firstArgIsOffset = /[+-]/.test(args[0]) address = if firstArgIsOffset then range[0] else 0 + # Caluculate address from args. for arg in args if arg == '$' address = lastLine @@ -503,6 +504,7 @@ class Ex if address == range[0] or address == range[1] editor.setCursorBufferPosition([range[1], 0]) else + # Batch move operations as a single undo/redo action. move = -> numOfLinesToMove = range[1] - range[0] bufferRange = [[range[0], 0], [range[1] + 1, 0]]