Don't crash when given a invalid colour, reported by Felix Rosencrantz,
fix from Thomas Adam.
Be consistent and allow only mouse down and mouse wheel for any pane
with mouse-select-pane rather than just in copy mode, reported by Balazs
Kezes.
Fix memory leaks with paste_replace, based on changes from J Raynor.
Merge branch 'obsd-master'