Skip to content

Commit

Permalink
Merge pull request Fuco1#1211 from knu/fix-enh-ruby-mode
Browse files Browse the repository at this point in the history
Use fboundp for functions
  • Loading branch information
Fuco1 authored Jul 2, 2024
2 parents 98f1357 + f9fc6c9 commit 71eab0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartparens-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
(defun sp-ruby-forward-sexp ()
"Wrapper for `ruby-forward-sexp' based on `enh-ruby-mode'."
(interactive)
(if (boundp 'enh-ruby-forward-sexp)
(if (fboundp 'enh-ruby-forward-sexp)
(enh-ruby-forward-sexp)
(ruby-forward-sexp)))

(defun sp-ruby-backward-sexp ()
"Wrapper for `ruby-backward-sexp' based on `enh-ruby-mode'."
(interactive)
(if (boundp 'enh-ruby-backward-sexp)
(if (fboundp 'enh-ruby-backward-sexp)
(enh-ruby-backward-sexp)
(ruby-backward-sexp)))

Expand Down

0 comments on commit 71eab0b

Please sign in to comment.