Skip to content

Commit

Permalink
Send empty string if buffer is visited with file
Browse files Browse the repository at this point in the history
Sending nil makes error
  • Loading branch information
syohex committed Apr 22, 2015
1 parent fd4012d commit 07d549d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jedi-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ See also: `jedi:server-args'."
(defun jedi:-buffer-file-name ()
"Return `buffer-file-name' without text properties.
See: https://github.com/tkf/emacs-jedi/issues/54"
(when (stringp buffer-file-name)
(substring-no-properties buffer-file-name)))
(substring-no-properties (or (buffer-file-name) "")))

(defun jedi:call-deferred (method-name)
"Call ``Script(...).METHOD-NAME`` and return a deferred object."
Expand Down

0 comments on commit 07d549d

Please sign in to comment.