Skip to content

Commit

Permalink
Merge pull request #222 from tkf/fix-for-no-file-buffer
Browse files Browse the repository at this point in the history
Send empty string if buffer is visited with file
  • Loading branch information
syohex committed Apr 22, 2015
2 parents fd4012d + 07d549d commit d0f6ea4
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 d0f6ea4

Please sign in to comment.