block completion if we are not the focused window

helps with 2 views and a single buffer