Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim mode plus marks specs #180

Merged
merged 4 commits into from
May 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,45 @@
language: objective-c
## Project specific config ###
language: generic

env:
- APM_TEST_PACKAGES="vim-mode"
global:
- APM_TEST_PACKAGES="vim-mode-plus"
- ATOM_LINT_WITH_BUNDLED_NODE="true"

matrix:
- ATOM_CHANNEL=stable
- ATOM_CHANNEL=beta

os:
- linux

dist: trusty

### Generic setup follows ###
script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
- chmod u+x build-package.sh
- ./build-package.sh

notifications:
email:
on_success: never
on_failure: change

script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh'
branches:
only:
- master

git:
depth: 10

sudo: false

addons:
apt:
packages:
- build-essential
- git
- libgnome-keyring-dev
- libsecret-1-dev
- fakeroot
2 changes: 1 addition & 1 deletion lib/command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Command
else if str[0] is "'" # Parse Mark...
unless @vimState?
throw new CommandError("Couldn't get access to vim-mode.")
mark = @vimState.marks[str[1]]
mark = @vimState.mark.marks[str[1]]
unless mark?
throw new CommandError("Mark #{str} not set.")
addr = mark.getEndBufferPosition().row
Expand Down
3 changes: 1 addition & 2 deletions spec/ex-commands-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe "the commands", ->
[editor, editorElement, vimState, exState, dir, dir2] = []
projectPath = (fileName) -> path.join(dir, fileName)
beforeEach ->
vimMode = atom.packages.loadPackage('vim-mode')
vimMode = atom.packages.loadPackage('vim-mode-plus')
exMode = atom.packages.loadPackage('ex-mode')
waitsForPromise ->
activationPromise = exMode.activate()
Expand Down Expand Up @@ -42,7 +42,6 @@ describe "the commands", ->
editor = editorElement.getModel()
vimState = vimMode.mainModule.getEditorState(editor)
exState = exMode.mainModule.exStates.get(editor)
vimState.activateNormalMode()
vimState.resetNormalMode()
editor.setText("abc\ndef\nabc\ndef")

Expand Down
3 changes: 1 addition & 2 deletions spec/ex-input-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ helpers = require './spec-helper'
describe "the input element", ->
[editor, editorElement, vimState, exState] = []
beforeEach ->
vimMode = atom.packages.loadPackage('vim-mode')
vimMode = atom.packages.loadPackage('vim-mode-plus')
exMode = atom.packages.loadPackage('ex-mode')
waitsForPromise ->
activationPromise = exMode.activate()
Expand All @@ -26,7 +26,6 @@ describe "the input element", ->
atom.commands.dispatch(getCommandEditor(), "core:cancel")
vimState = vimMode.mainModule.getEditorState(editor)
exState = exMode.mainModule.exStates.get(editor)
vimState.activateNormalMode()
vimState.resetNormalMode()
editor.setText("abc\ndef\nabc\ndef")

Expand Down