Mercurial > vim
comparison src/edit.c @ 692:a28f83d37113
updated for version 7.0208
author | vimboss |
---|---|
date | Mon, 27 Feb 2006 00:08:02 +0000 |
parents | a39b8af64334 |
children | 07d199fe02ed |
comparison
equal
deleted
inserted
replaced
691:8106f3da02d0 | 692:a28f83d37113 |
---|---|
200 static int ins_bs __ARGS((int c, int mode, int *inserted_space_p)); | 200 static int ins_bs __ARGS((int c, int mode, int *inserted_space_p)); |
201 #ifdef FEAT_MOUSE | 201 #ifdef FEAT_MOUSE |
202 static void ins_mouse __ARGS((int c)); | 202 static void ins_mouse __ARGS((int c)); |
203 static void ins_mousescroll __ARGS((int up)); | 203 static void ins_mousescroll __ARGS((int up)); |
204 #endif | 204 #endif |
205 #if defined(FEAT_GUI_TABLINE) || defined(PROTO) | |
206 static void ins_tabline __ARGS((int c)); | |
207 #endif | |
205 static void ins_left __ARGS((void)); | 208 static void ins_left __ARGS((void)); |
206 static void ins_home __ARGS((int c)); | 209 static void ins_home __ARGS((int c)); |
207 static void ins_end __ARGS((int c)); | 210 static void ins_end __ARGS((int c)); |
208 static void ins_s_left __ARGS((void)); | 211 static void ins_s_left __ARGS((void)); |
209 static void ins_right __ARGS((void)); | 212 static void ins_right __ARGS((void)); |
1040 ins_mousescroll(FALSE); | 1043 ins_mousescroll(FALSE); |
1041 break; | 1044 break; |
1042 | 1045 |
1043 case K_MOUSEUP: /* Default action for scroll wheel down: scroll down */ | 1046 case K_MOUSEUP: /* Default action for scroll wheel down: scroll down */ |
1044 ins_mousescroll(TRUE); | 1047 ins_mousescroll(TRUE); |
1048 break; | |
1049 #endif | |
1050 #ifdef FEAT_GUI_TABLINE | |
1051 case K_TABLINE: | |
1052 case K_TABMENU: | |
1053 ins_tabline(c); | |
1045 break; | 1054 break; |
1046 #endif | 1055 #endif |
1047 | 1056 |
1048 case K_IGNORE: /* Something mapped to nothing */ | 1057 case K_IGNORE: /* Something mapped to nothing */ |
1049 break; | 1058 break; |
3513 compl_direction, compl_pattern); | 3522 compl_direction, compl_pattern); |
3514 else | 3523 else |
3515 found_new_match = searchit(NULL, ins_buf, pos, | 3524 found_new_match = searchit(NULL, ins_buf, pos, |
3516 compl_direction, | 3525 compl_direction, |
3517 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG, | 3526 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG, |
3518 RE_LAST); | 3527 RE_LAST, (linenr_T)0); |
3519 if (!compl_started) | 3528 if (!compl_started) |
3520 { | 3529 { |
3521 /* set "compl_started" even on fail */ | 3530 /* set "compl_started" even on fail */ |
3522 compl_started = TRUE; | 3531 compl_started = TRUE; |
3523 first_match_pos = *pos; | 3532 first_match_pos = *pos; |
7976 # endif | 7985 # endif |
7977 } | 7986 } |
7978 } | 7987 } |
7979 #endif | 7988 #endif |
7980 | 7989 |
7981 #ifdef FEAT_GUI | 7990 #if defined(FEAT_GUI_TABLINE) || defined(PROTO) |
7991 void | |
7992 ins_tabline(c) | |
7993 int c; | |
7994 { | |
7995 /* We will be leaving the current window, unless closing another tab. */ | |
7996 if (c != K_TABMENU || current_tabmenu != TABLINE_MENU_CLOSE | |
7997 || (current_tab != 0 && current_tab != tabpage_index(curtab))) | |
7998 { | |
7999 undisplay_dollar(); | |
8000 start_arrow(&curwin->w_cursor); | |
8001 # ifdef FEAT_CINDENT | |
8002 can_cindent = TRUE; | |
8003 # endif | |
8004 } | |
8005 | |
8006 if (c == K_TABLINE) | |
8007 goto_tabpage(current_tab); | |
8008 else | |
8009 handle_tabmenu(); | |
8010 | |
8011 } | |
8012 #endif | |
8013 | |
8014 #if defined(FEAT_GUI) || defined(PROTO) | |
7982 void | 8015 void |
7983 ins_scroll() | 8016 ins_scroll() |
7984 { | 8017 { |
7985 pos_T tpos; | 8018 pos_T tpos; |
7986 | 8019 |