Skip to content

Commit

Permalink
Merge pull request yasuyk#24 from zw963/master
Browse files Browse the repository at this point in the history
Fixed: when cursor on empty line result in `nil' error.
  • Loading branch information
yasuyk authored Aug 20, 2016
2 parents 456ea83 + 63ff51a commit dc66d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm-git-grep.el
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ if submodules exists, grep submodules too."
(interactive)
(let* ((symbol (if (not mark-active) (thing-at-point 'symbol)
(when (use-region-p) (buffer-substring (region-beginning) (region-end)))))
(input (if symbol (concat symbol " ") nil)))
(input (if symbol (concat symbol " ") "")))
(when (and helm-git-grep-at-point-deactivate-mark mark-active)
(deactivate-mark)) ;; remove any active regions
(helm-git-grep-1 input)))
Expand Down

0 comments on commit dc66d07

Please sign in to comment.