Mercurial > vim
comparison src/getchar.c @ 26944:8dbdd68627bd v8.2.4001
patch 8.2.4001: insert complete code uses global variables
Commit: https://github.com/vim/vim/commit/d94fbfc74a8b8073e7a256c95fa6f39fc527c726
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Jan 4 17:01:44 2022 +0000
patch 8.2.4001: insert complete code uses global variables
Problem: Insert complete code uses global variables.
Solution: Make variables local to the file and use accessor functions.
(Yegappan Lakshmanan, closes #9470)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 18:15:03 +0100 |
parents | 9975bd408d6c |
children | 8d4b44cc324e |
comparison
equal
deleted
inserted
replaced
26943:61f686b38df9 | 26944:8dbdd68627bd |
---|---|
2451 && !(p_paste && (State & (INSERT + CMDLINE))) | 2451 && !(p_paste && (State & (INSERT + CMDLINE))) |
2452 && !(State == HITRETURN && (tb_c1 == CAR || tb_c1 == ' ')) | 2452 && !(State == HITRETURN && (tb_c1 == CAR || tb_c1 == ' ')) |
2453 && State != ASKMORE | 2453 && State != ASKMORE |
2454 && State != CONFIRM | 2454 && State != CONFIRM |
2455 && !((ctrl_x_mode_not_default() && at_ctrl_x_key()) | 2455 && !((ctrl_x_mode_not_default() && at_ctrl_x_key()) |
2456 || ((compl_cont_status & CONT_LOCAL) | 2456 || (compl_status_local() |
2457 && (tb_c1 == Ctrl_N || tb_c1 == Ctrl_P)))) | 2457 && (tb_c1 == Ctrl_N || tb_c1 == Ctrl_P)))) |
2458 { | 2458 { |
2459 #ifdef FEAT_GUI | 2459 #ifdef FEAT_GUI |
2460 if (gui.in_use && tb_c1 == CSI && typebuf.tb_len >= 2 | 2460 if (gui.in_use && tb_c1 == CSI && typebuf.tb_len >= 2 |
2461 && typebuf.tb_buf[typebuf.tb_off + 1] == KS_MODIFIER) | 2461 && typebuf.tb_buf[typebuf.tb_off + 1] == KS_MODIFIER) |