Fixing bug, where the user could select the whole method

Signed-off-by: RedChrome <redchrome@gmx.de>