]> git.eshelyaron.com Git - emacs.git/commit
Don't compare arguments that can be nil
authorOscar Fuentes <ofv@wanadoo.es>
Sat, 16 Dec 2017 00:34:35 +0000 (01:34 +0100)
committerOscar Fuentes <ofv@wanadoo.es>
Sat, 16 Dec 2017 00:37:21 +0000 (01:37 +0100)
commit506270f9c80bf9bd7dad35a2f0aa6f477da6490b
treef1cbb2ff9941904bb03e32c26be0d13a7566b950
parent5e6fb1e246b1e7f44ebba48e7e24f597a8eb92dd
Don't compare arguments that can be nil

copy-region-as-kill can be called passing nil as `beg' and
`end'. Magit does that, which caused an error when this advice was in
effect.

* lisp/ses.el (ses--advice-copy-region-as-kill): avoid comparison
  unless `beg' and `end' are non-nil.
lisp/ses.el