From e6e77c611f07f2ed593f27620fed54c63fa76df8 Mon Sep 17 00:00:00 2001 From: Phil Jackson Date: Thu, 1 Apr 2010 01:23:36 +0100 Subject: [PATCH] Fix `magit--branch-name-at-point'. --- magit.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/magit.el b/magit.el index 59430cd1..faf8c33d 100644 --- a/magit.el +++ b/magit.el @@ -3574,10 +3574,7 @@ Will remove the 'remotes/' prefix if it exists." (defun magit--branch-name-at-point () "Get the branch name in the line at point." (let ((branch (magit--branch-name-from-line (thing-at-point 'line)))) - (if (or (= (point) (point-max)) - (not branch)) - (error "No branch found in current line")) - branch)) + (or branch (error "No branch at point")))) (defun magit-branches-window-checkout () "Check out the branch in the line at point."