We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b27267 commit eaab718Copy full SHA for eaab718
rs-playground.el
@@ -178,8 +178,8 @@ By default confirmation required."
178
179
(defun rust-playground-inside ()
180
"It checks that minor mode is rusl-playground and buffer file placed under default directory."
181
- (and (boundp 'rust-playground-mode) rust-playground-mode
182
- (if (string-match-p (file-truename rust-playground-basedir) (file-truename (buffer-file-name))) t)))
+ (if (string-match-p (file-truename rust-playground-basedir) (file-truename (buffer-file-name)))
+ (bound-and-true-p rust-playground-mode)))
183
184
(provide 'rust-playground)
185
;;; rust-playground.el ends here
0 commit comments