Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the suggestion list count display #1675

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 16, 2017

  1. Fix the suggestion list count display

    When you have limit=5, 3 results length for suggestions and 0 rendered, for example, then you only render 2 results.
    because 
    rendered += suggestions.length; // 0+=3; rendered= 3
    that._append(query, suggestions.slice(0, 5 - 3)); // that._append(query, suggestions.slice(0, 2));
    
    When the lines are swape
    that._append(query, suggestions.slice(0, 5 - 0)); // that._append(query, suggestions.slice(0, 5));
    rendered += suggestions.length; // 0+=3; rendered= 3
    fquiroz01 committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    36ac99e View commit details
    Browse the repository at this point in the history