Skip to content

Commit

Permalink
poporg.el (poporg-dwim): Handle region case properly.
Browse files Browse the repository at this point in the history
Reported by Jean Schurger.
  • Loading branch information
pinard committed Mar 1, 2013
1 parent 19bd64d commit d03a708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poporg.el
Expand Up @@ -71,7 +71,8 @@ Edit either the active region, the comment or string containing
the cursor, after the cursor, else before the cursor. Within a
*poporg* edit buffer however, rather complete and exit the edit."
(cond ((assq (current-buffer) poporg-data) (poporg-edit-exit))
((use-region-p) (poporg-edit-region (region-beginning) (region-end)))
((use-region-p)
(poporg-edit-region (region-beginning) (region-end) ""))
((poporg-check-already-edited))
((poporg-dwim-1 (point)))
((poporg-dwim-1
Expand Down

0 comments on commit d03a708

Please sign in to comment.