File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -988,17 +988,14 @@ NEW-NAME is the name to give the tag."
988988
989989
990990(defun rjsx-jump-opening-tag ()
991- " Goto opening tag of focused tab body "
991+ " Go to opening tag of tag at point. "
992992 (interactive )
993- (let* ((tag (rjsx--tag-at-point))
994- (closer (and tag (rjsx-node-closing-tag tag))))
995- (cond
996- ((null tag) (message " No JSX tag found at point " ))
997- (t
998- (goto-char (+ 1 (js2-node-abs-pos tag)))))))
993+ (let ((tag (rjsx--tag-at-point)))
994+ (if (null tag) (message " No JSX tag found at point " )
995+ (goto-char (+ 1 (js2-node-abs-pos tag))))))
999996
1000997(defun rjsx-jump-tag ()
1001- " Switch between opening and closing tag of focused tab body "
998+ " Switch between opening and closing tag of tag at point. "
1002999 (interactive )
10031000 (let* ((tag (rjsx--tag-at-point))
10041001 (closer (and tag (rjsx-node-closing-tag tag))))
You can’t perform that action at this time.
0 commit comments