comparison src/ex_getln.c @ 692:a28f83d37113

updated for version 7.0208
author vimboss
date Mon, 27 Feb 2006 00:08:02 +0000
parents a39b8af64334
children 0f9f4761ad9c
comparison
equal deleted inserted replaced
691:8106f3da02d0 692:a28f83d37113
1222 /* When GUI is active, also paste when 'mouse' is empty */ 1222 /* When GUI is active, also paste when 'mouse' is empty */
1223 if (!gui.in_use) 1223 if (!gui.in_use)
1224 # endif 1224 # endif
1225 if (!mouse_has(MOUSE_COMMAND)) 1225 if (!mouse_has(MOUSE_COMMAND))
1226 goto cmdline_not_changed; /* Ignore mouse */ 1226 goto cmdline_not_changed; /* Ignore mouse */
1227 #ifdef FEAT_CLIPBOARD 1227 # ifdef FEAT_CLIPBOARD
1228 if (clip_star.available) 1228 if (clip_star.available)
1229 cmdline_paste('*', TRUE); 1229 cmdline_paste('*', TRUE);
1230 else 1230 else
1231 #endif 1231 # endif
1232 cmdline_paste(0, TRUE); 1232 cmdline_paste(0, TRUE);
1233 redrawcmd(); 1233 redrawcmd();
1234 goto cmdline_changed; 1234 goto cmdline_changed;
1235 1235
1236 #ifdef FEAT_DND 1236 # ifdef FEAT_DND
1237 case K_DROP: 1237 case K_DROP:
1238 cmdline_paste('~', TRUE); 1238 cmdline_paste('~', TRUE);
1239 redrawcmd(); 1239 redrawcmd();
1240 goto cmdline_changed; 1240 goto cmdline_changed;
1241 #endif 1241 # endif
1242 1242
1243 case K_LEFTDRAG: 1243 case K_LEFTDRAG:
1244 case K_LEFTRELEASE: 1244 case K_LEFTRELEASE:
1245 case K_RIGHTDRAG: 1245 case K_RIGHTDRAG:
1246 case K_RIGHTRELEASE: 1246 case K_RIGHTRELEASE:
1289 { 1289 {
1290 i = cmdline_charsize(ccline.cmdpos); 1290 i = cmdline_charsize(ccline.cmdpos);
1291 if (mouse_row <= cmdline_row + ccline.cmdspos / Columns 1291 if (mouse_row <= cmdline_row + ccline.cmdspos / Columns
1292 && mouse_col < ccline.cmdspos % Columns + i) 1292 && mouse_col < ccline.cmdspos % Columns + i)
1293 break; 1293 break;
1294 #ifdef FEAT_MBYTE 1294 # ifdef FEAT_MBYTE
1295 if (has_mbyte) 1295 if (has_mbyte)
1296 { 1296 {
1297 /* Count ">" for double-wide char that doesn't fit. */ 1297 /* Count ">" for double-wide char that doesn't fit. */
1298 correct_cmdspos(ccline.cmdpos, i); 1298 correct_cmdspos(ccline.cmdpos, i);
1299 ccline.cmdpos += (*mb_ptr2len)(ccline.cmdbuff 1299 ccline.cmdpos += (*mb_ptr2len)(ccline.cmdbuff
1300 + ccline.cmdpos) - 1; 1300 + ccline.cmdpos) - 1;
1301 } 1301 }
1302 #endif 1302 # endif
1303 ccline.cmdspos += i; 1303 ccline.cmdspos += i;
1304 } 1304 }
1305 goto cmdline_not_changed; 1305 goto cmdline_not_changed;
1306 1306
1307 /* Mouse scroll wheel: ignored here */ 1307 /* Mouse scroll wheel: ignored here */
1337 gui_do_horiz_scroll(); 1337 gui_do_horiz_scroll();
1338 redrawcmd(); 1338 redrawcmd();
1339 } 1339 }
1340 goto cmdline_not_changed; 1340 goto cmdline_not_changed;
1341 #endif 1341 #endif
1342 #ifdef FEAT_GUI_TABLINE
1343 case K_TABLINE:
1344 case K_TABMENU:
1345 /* Don't want to change any tabs here. Make sure the same tab
1346 * is still selected. */
1347 if (gui_use_tabline())
1348 gui_mch_set_curtab(tabpage_index(curtab));
1349 goto cmdline_not_changed;
1350 #endif
1351
1342 case K_SELECT: /* end of Select mode mapping - ignore */ 1352 case K_SELECT: /* end of Select mode mapping - ignore */
1343 goto cmdline_not_changed; 1353 goto cmdline_not_changed;
1344 1354
1345 case Ctrl_B: /* begin of command line */ 1355 case Ctrl_B: /* begin of command line */
1346 case K_HOME: 1356 case K_HOME: