Skip to content

Commit

Permalink
Parameterize positioning point at line
Browse files Browse the repository at this point in the history
  • Loading branch information
joranvar committed Aug 17, 2016
1 parent df751d7 commit 846dba6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions features/step-definitions/yafolding-steps.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
(erase-buffer)
(insert-file-contents filename)))

(And "^I am on line 2$"
(lambda () (goto-line 2)))

(And "^I go to line 1$"
(lambda () (goto-line 1)))
(And "^I \\(?:am on\\|go to\\) line \\([0-9]+\\)$"
(lambda (line) (goto-line (string-to-number line))))

(And "^I call yafolding-hide-element$"
(lambda () (yafolding-hide-element)))
Expand Down

0 comments on commit 846dba6

Please sign in to comment.