summaryrefslogtreecommitdiff
path: root/lisp/ibuf-ext.el
diff options
context:
space:
mode:
authorTino Calancha <f92capac@gmail.com>2016-02-23 20:17:21 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-02-23 20:17:21 +1100
commitcc27b1b04113677bf9f7bf60f41ac3f07c6c2530 (patch)
treef8851b4c9d04d5a3ecb586301d5b0fcf5602059a /lisp/ibuf-ext.el
parentb8dfc7beeb49d3fe673966f630126a38397e8d78 (diff)
downloademacs-cc27b1b04113677bf9f7bf60f41ac3f07c6c2530.tar.gz
Allow optional parameter to be nil
* lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill): Allow the optional parameter to be nil (bug#21576).
Diffstat (limited to 'lisp/ibuf-ext.el')
-rw-r--r--lisp/ibuf-ext.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index aa3ccbd40f7..6052bf32ce3 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1403,7 +1403,7 @@ You can then feed the file name(s) to other commands with \\[yank]."
(if (zerop (ibuffer-count-marked-lines))
(message "No buffers marked; use 'm' to mark a buffer")
(let ((ibuffer-copy-filename-as-kill-result "")
- (type (cond ((zerop arg)
+ (type (cond ((or (null arg) (zerop arg))
'full)
((= arg 4)
'relative)