Merge pull request #2017 from bennofs/fix-jumplist-empty-buffer
Fix nil error in +ivy/jump-list for empty buffers
This commit is contained in:
commit
a383293530
1 changed files with 1 additions and 1 deletions
|
@ -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) "")))
|
||||
(point-marker)))))))
|
||||
(cddr (better-jumper-jump-list-struct-ring
|
||||
(better-jumper-get-jumps (better-jumper--get-current-context))))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue