Fix mark addresses and add specs for addresses

Enables properly parsing marks as addresses. Also adds some specs for
addresses by checking how ex-mode behaves when used as a motion.

Fixes #70.
This commit is contained in:
jazzpi 2016-08-16 00:36:05 +02:00
parent 1799706e95
commit 3c952ccbfe
2 changed files with 63 additions and 1 deletions

View file

@ -24,7 +24,7 @@ class Command
mark = @vimState.marks[str[1]]
unless mark?
throw new CommandError("Mark #{str} not set.")
addr = mark.bufferMarker.range.end.row
addr = mark.getEndBufferPosition().row
else if str[0] is "/"
addr = Find.findNextInBuffer(@editor.buffer, curPos, str[1...-1])
unless addr?