Add comments
This commit is contained in:
parent
3de7653f2d
commit
3f05cfcdb6
1 changed files with 2 additions and 0 deletions
|
|
@ -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]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue