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 ca4dd48 commit ac6696dCopy full SHA for ac6696d
pyimport.el
@@ -40,10 +40,7 @@
40
41
(defun pyimport--current-line ()
42
"Return the whole line at point, excluding the trailing newline."
43
- (save-excursion
44
- (let ((line-start (progn (beginning-of-line) (point)))
45
- (line-end (progn (end-of-line) (point))))
46
- (buffer-substring line-start line-end))))
+ (buffer-substring-no-properties (line-beginning-position) (line-end-position)))
47
48
(defun pyimport--last-line-p ()
49
"Return non-nil if the current line is the last in the buffer."
0 commit comments