mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 01:44:19 +00:00
bugfix: Fix #242
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
(interactive)
|
||||
(let* ((tag-at-point (sgml-beginning-of-tag))
|
||||
(fragment (and tag-at-point
|
||||
(aget yas/html-tag-description-urls (upcase tag-at-point)))))
|
||||
(cdr (assoc (upcase tag-at-point) yas/html-tag-description-urls)))))
|
||||
(if fragment
|
||||
(browse-url (concat "http://www.w3.org/TR/html4/index/"
|
||||
fragment))
|
||||
|
||||
@@ -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