mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix nil error in +ivy/jump-list for empty buffers
For empty buffers which don't have any lines, `(thing-at-point 'line)` will return `nil`. This broke `+ivy/jump-list`.
This commit is contained in:
@ -513,7 +513,7 @@ If ALL-FILES-P, search compressed and hidden files as well."
|
||||
(cons (format "%s:%d: %s"
|
||||
(buffer-name)
|
||||
(line-number-at-pos)
|
||||
(string-trim-right (thing-at-point 'line)))
|
||||
(string-trim-right (or (thing-at-point 'line) "<EMPTY BUFFER>")))
|
||||
(point-marker)))))))
|
||||
(cddr (better-jumper-jump-list-struct-ring
|
||||
(better-jumper-get-jumps (better-jumper--get-current-context))))))))
|
||||
|
Reference in New Issue
Block a user