Fix bug with function completion if def was found in the current line, not it checks for 'def ' at start of line only