Add comments

This commit is contained in:
solecki 2018-04-15 00:53:41 +02:00
parent 3de7653f2d
commit 3f05cfcdb6

View file

@ -475,6 +475,7 @@ class Ex
firstArgIsOffset = /[+-]/.test(args[0]) firstArgIsOffset = /[+-]/.test(args[0])
address = if firstArgIsOffset then range[0] else 0 address = if firstArgIsOffset then range[0] else 0
# Caluculate address from args.
for arg in args for arg in args
if arg == '$' if arg == '$'
address = lastLine address = lastLine
@ -503,6 +504,7 @@ class Ex
if address == range[0] or address == range[1] if address == range[0] or address == range[1]
editor.setCursorBufferPosition([range[1], 0]) editor.setCursorBufferPosition([range[1], 0])
else else
# Batch move operations as a single undo/redo action.
move = -> move = ->
numOfLinesToMove = range[1] - range[0] numOfLinesToMove = range[1] - range[0]
bufferRange = [[range[0], 0], [range[1] + 1, 0]] bufferRange = [[range[0], 0], [range[1] + 1, 0]]