Call getType on selection to determine its type in clipboard command state update procedure.
Merge branch 't/9851b'