improve selection.curword command.
undo in the macro was not worked properly.