We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f179ea1 commit 4a64532Copy full SHA for 4a64532
grip-mode.el
@@ -169,12 +169,12 @@ Use default browser unless `xwidget' is available."
169
(unless (and grip-mdopen-path (executable-find grip-mdopen-path))
170
(grip-mode -1) ; Force to disable
171
(user-error "The `mdopen' is not available in PATH environment"))
172
- (when buffer-file-name
+ (when grip--preview-file
173
(setq grip--process
174
(start-process "mdopen" "*mdopen*"
175
grip-mdopen-path
176
- buffer-file-name))
177
- (message "Preview `%s' with mdopen" buffer-file-name)))
+ grip--preview-file))
+ (message "Preview `%s' on %s" buffer-file-name (grip--preview-url))))
178
(progn
179
(unless (and grip-binary-path (executable-find grip-binary-path))
180
0 commit comments