Mercurial > vim
comparison src/edit.c @ 133:bcb347a8f934
updated for version 7.0044
author | vimboss |
---|---|
date | Tue, 25 Jan 2005 22:12:55 +0000 |
parents | 388f285bda1b |
children | 8ecb0db93e9a |
comparison
equal
deleted
inserted
replaced
132:d6009de12681 | 133:bcb347a8f934 |
---|---|
3381 ; | 3381 ; |
3382 tmp_ptr += ++temp; | 3382 tmp_ptr += ++temp; |
3383 temp = complete_col - temp; | 3383 temp = complete_col - temp; |
3384 } | 3384 } |
3385 if (p_ic) | 3385 if (p_ic) |
3386 complete_pat = str_foldcase(tmp_ptr, temp); | 3386 complete_pat = str_foldcase(tmp_ptr, temp, NULL, 0); |
3387 else | 3387 else |
3388 complete_pat = vim_strnsave(tmp_ptr, temp); | 3388 complete_pat = vim_strnsave(tmp_ptr, temp); |
3389 if (complete_pat == NULL) | 3389 if (complete_pat == NULL) |
3390 return FAIL; | 3390 return FAIL; |
3391 } | 3391 } |
3480 tmp_ptr = skipwhite(line); | 3480 tmp_ptr = skipwhite(line); |
3481 temp = (int)complete_col - (int)(tmp_ptr - line); | 3481 temp = (int)complete_col - (int)(tmp_ptr - line); |
3482 if (temp < 0) /* cursor in indent: empty pattern */ | 3482 if (temp < 0) /* cursor in indent: empty pattern */ |
3483 temp = 0; | 3483 temp = 0; |
3484 if (p_ic) | 3484 if (p_ic) |
3485 complete_pat = str_foldcase(tmp_ptr, temp); | 3485 complete_pat = str_foldcase(tmp_ptr, temp, NULL, 0); |
3486 else | 3486 else |
3487 complete_pat = vim_strnsave(tmp_ptr, temp); | 3487 complete_pat = vim_strnsave(tmp_ptr, temp); |
3488 if (complete_pat == NULL) | 3488 if (complete_pat == NULL) |
3489 return FAIL; | 3489 return FAIL; |
3490 } | 3490 } |
6109 * evaluating it or giving an error message for it! | 6109 * evaluating it or giving an error message for it! |
6110 */ | 6110 */ |
6111 ++no_u_sync; | 6111 ++no_u_sync; |
6112 if (regname == '=') | 6112 if (regname == '=') |
6113 { | 6113 { |
6114 #ifdef USE_IM_CONTROL | 6114 # ifdef USE_IM_CONTROL |
6115 int im_on = im_get_status(); | 6115 int im_on = im_get_status(); |
6116 #endif | 6116 # endif |
6117 regname = get_expr_register(); | 6117 regname = get_expr_register(); |
6118 #ifdef USE_IM_CONTROL | 6118 # ifdef USE_IM_CONTROL |
6119 /* Restore the Input Method. */ | 6119 /* Restore the Input Method. */ |
6120 if (im_on) | 6120 if (im_on) |
6121 im_set_active(TRUE); | 6121 im_set_active(TRUE); |
6122 #endif | 6122 # endif |
6123 } | 6123 } |
6124 if (regname == NUL) | 6124 if (regname == NUL) |
6125 need_redraw = TRUE; /* remove the '"' */ | 6125 need_redraw = TRUE; /* remove the '"' */ |
6126 else | 6126 else |
6127 { | 6127 { |
6139 else if (insert_reg(regname, literally) == FAIL) | 6139 else if (insert_reg(regname, literally) == FAIL) |
6140 { | 6140 { |
6141 vim_beep(); | 6141 vim_beep(); |
6142 need_redraw = TRUE; /* remove the '"' */ | 6142 need_redraw = TRUE; /* remove the '"' */ |
6143 } | 6143 } |
6144 else if (stop_insert_mode) | |
6145 /* When the '=' register was used and a function was invoked that | |
6146 * did ":stopinsert" then stuff_empty() returns FALSE but we won't | |
6147 * insert anything, need to remove the '"' */ | |
6148 need_redraw = TRUE; | |
6149 | |
6144 #ifdef FEAT_EVAL | 6150 #ifdef FEAT_EVAL |
6145 } | 6151 } |
6146 --no_u_sync; | 6152 --no_u_sync; |
6147 #endif | 6153 #endif |
6148 #ifdef FEAT_CMDL_INFO | 6154 #ifdef FEAT_CMDL_INFO |