You shouldn’t be selecting the word. Place your cursor in front of it and then enter the no-hyphen code.
You will also have to use non-breaking hyphens inside your expression.
I found either a solution or a workaround. David solved the problem of the
disappearing word (<applies dope slap to self>) but the word still broke
at the hyphen.
I then tried changing the hyphen to a true minus sign, (CTRL-Q SHIFT-P)
but that didn't work either-- the word broke after the minus sign.
The problem went away after I did Format>Document>Text Options and removed
both the hyphen and the minus sign from the "Allow Line Breaks After" field.
Cheers,
JP