Only show command info if the click is in the left margin. Also add some debug logging.