Mercurial > vim
comparison src/edit.c @ 6931:f587f6857010 v7.4.784
patch 7.4.784
Problem: Using both "noinsert" and "noselect" in 'completeopt' does not
work properly.
Solution: Change the ins_complete() calls. (Ozaki Kiichi)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 17 Jul 2015 13:42:23 +0200 |
parents | e09a7ff88046 |
children | 1e621b31948b |
comparison
equal
deleted
inserted
replaced
6930:7788aaca5954 | 6931:f587f6857010 |
---|---|
2792 compl_used_match = TRUE; | 2792 compl_used_match = TRUE; |
2793 compl_cont_status = 0; | 2793 compl_cont_status = 0; |
2794 | 2794 |
2795 compl_curr_match = compl_first_match; | 2795 compl_curr_match = compl_first_match; |
2796 if (compl_no_insert) | 2796 if (compl_no_insert) |
2797 { | 2797 ins_complete(K_DOWN); |
2798 if (!compl_no_select) | |
2799 ins_complete(K_DOWN); | |
2800 } | |
2801 else | 2798 else |
2802 { | |
2803 ins_complete(Ctrl_N); | 2799 ins_complete(Ctrl_N); |
2804 if (compl_no_select) | 2800 if (compl_no_select) |
2805 ins_complete(Ctrl_P); | 2801 ins_complete(Ctrl_P); |
2806 } | |
2807 out_flush(); | 2802 out_flush(); |
2808 } | 2803 } |
2809 | 2804 |
2810 | 2805 |
2811 /* "compl_match_array" points the currently displayed list of entries in the | 2806 /* "compl_match_array" points the currently displayed list of entries in the |