mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 08:24:18 +00:00
bugfix: Fix #242
This commit is contained in:
@@ -118,8 +118,8 @@
|
||||
(let* ((start (point))
|
||||
(end (save-excursion
|
||||
(search-forward-regexp "^\s*def\sself\.down" nil 'noerror)))
|
||||
(up (aget (aget yas/rails-intelligent-migration-snippet-bits type) :up))
|
||||
(down (aget (aget yas/rails-intelligent-migration-snippet-bits type) :down))
|
||||
(up (cdr (assoc :up (cdr (assoc type yas/rails-intelligent-migration-snippet-bits)))))
|
||||
(down (cdr (assoc :down (cdr (assoc type yas/rails-intelligent-migration-snippet-bits)))))
|
||||
(snippet
|
||||
(and up down start end (concat up
|
||||
(buffer-substring-no-properties start end)
|
||||
|
||||
Reference in New Issue
Block a user