keep text together?

This is a bug. The behavior is explicitly described in Unicode Line Breaking Algorithm (UAX #14):

HY Hyphen HYPHEN-MINUS Provide a line break opportunity after the character, except in numeric context