[FIX] GUI, Editor: only close bracket if next character is bracket or ws