comparison src/insexpand.c @ 24333:47d55d8a93c9 v8.2.2707

patch 8.2.2707: adding a lot of completions can still be a bit slow Commit: https://github.com/vim/vim/commit/ceb06194337f1a9d30cd12edb7b0dc51830b9cb7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 4 15:05:22 2021 +0200 patch 8.2.2707: adding a lot of completions can still be a bit slow Problem: Adding a lot of completions can still be a bit slow. Solution: Add the check for CP_FAST. (Ben Jackson)
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Apr 2021 15:15:04 +0200
parents 44e42eac77cb
children 4d3c68196d05
comparison
equal deleted inserted replaced
24332:ea3df9efc2f7 24333:47d55d8a93c9
584 { 584 {
585 compl_T *match; 585 compl_T *match;
586 int dir = (cdir == 0 ? compl_direction : cdir); 586 int dir = (cdir == 0 ? compl_direction : cdir);
587 int flags = flags_arg; 587 int flags = flags_arg;
588 588
589 ui_breakcheck(); 589 if (flags & CP_FAST)
590 fast_breakcheck();
591 else
592 ui_breakcheck();
590 if (got_int) 593 if (got_int)
591 return FAIL; 594 return FAIL;
592 if (len < 0) 595 if (len < 0)
593 len = (int)STRLEN(str); 596 len = (int)STRLEN(str);
594 597