def _add_decoration(self, cursor):
if self.select_word(cursor):<EOL><INDENT>self.editor.set_mouse_cursor(Qt.PointingHandCursor)<EOL><DEDENT>else:<EOL><INDENT>self.editor.set_mouse_cursor(Qt.IBeamCursor)<EOL><DEDENT>
Adds a decoration for the word under ``cursor``.