|
Karsten Hopp |
30f24c |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
30f24c |
Subject: Patch 7.3.618
|
|
Karsten Hopp |
30f24c |
Fcc: outbox
|
|
Karsten Hopp |
30f24c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
30f24c |
Mime-Version: 1.0
|
|
Karsten Hopp |
30f24c |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
30f24c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
30f24c |
------------
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
Patch 7.3.618 (after 7.3.616)
|
|
Karsten Hopp |
30f24c |
Problem: Still doesn't compile with small features.
|
|
Karsten Hopp |
30f24c |
Solution: Move current_search() out of #ifdef. (Dominique Pelle)
|
|
Karsten Hopp |
30f24c |
Files: src/normal.c, src/search.c
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
*** ../vim-7.3.617/src/normal.c 2012-07-27 21:05:51.000000000 +0200
|
|
Karsten Hopp |
30f24c |
--- src/normal.c 2012-07-28 13:34:13.000000000 +0200
|
|
Karsten Hopp |
30f24c |
***************
|
|
Karsten Hopp |
30f24c |
*** 7995,8000 ****
|
|
Karsten Hopp |
30f24c |
--- 7995,8001 ----
|
|
Karsten Hopp |
30f24c |
cap->arg = TRUE;
|
|
Karsten Hopp |
30f24c |
nv_visual(cap);
|
|
Karsten Hopp |
30f24c |
break;
|
|
Karsten Hopp |
30f24c |
+ #endif /* FEAT_VISUAL */
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
/* "gn", "gN" visually select next/previous search match
|
|
Karsten Hopp |
30f24c |
* "gn" selects next match
|
|
Karsten Hopp |
30f24c |
***************
|
|
Karsten Hopp |
30f24c |
*** 8006,8014 ****
|
|
Karsten Hopp |
30f24c |
if (!current_search(cap->count1, cap->nchar == 'n'))
|
|
Karsten Hopp |
30f24c |
#endif
|
|
Karsten Hopp |
30f24c |
beep_flush();
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
break;
|
|
Karsten Hopp |
30f24c |
- #endif /* FEAT_VISUAL */
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
/*
|
|
Karsten Hopp |
30f24c |
* "gj" and "gk" two new funny movement keys -- up and down
|
|
Karsten Hopp |
30f24c |
--- 8007,8013 ----
|
|
Karsten Hopp |
30f24c |
*** ../vim-7.3.617/src/search.c 2012-07-25 15:06:20.000000000 +0200
|
|
Karsten Hopp |
30f24c |
--- src/search.c 2012-07-28 13:37:19.000000000 +0200
|
|
Karsten Hopp |
30f24c |
***************
|
|
Karsten Hopp |
30f24c |
*** 3397,3547 ****
|
|
Karsten Hopp |
30f24c |
return OK;
|
|
Karsten Hopp |
30f24c |
}
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
- #if defined(FEAT_VISUAL) || defined(PROTO)
|
|
Karsten Hopp |
30f24c |
- /*
|
|
Karsten Hopp |
30f24c |
- * Find next search match under cursor, cursor at end.
|
|
Karsten Hopp |
30f24c |
- * Used while an operator is pending, and in Visual mode.
|
|
Karsten Hopp |
30f24c |
- * TODO: redo only works when used in operator pending mode
|
|
Karsten Hopp |
30f24c |
- */
|
|
Karsten Hopp |
30f24c |
- int
|
|
Karsten Hopp |
30f24c |
- current_search(count, forward)
|
|
Karsten Hopp |
30f24c |
- long count;
|
|
Karsten Hopp |
30f24c |
- int forward; /* move forward or backwards */
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- pos_T start_pos; /* position before the pattern */
|
|
Karsten Hopp |
30f24c |
- pos_T orig_pos; /* position of the cursor at beginning */
|
|
Karsten Hopp |
30f24c |
- pos_T pos; /* position after the pattern */
|
|
Karsten Hopp |
30f24c |
- int i;
|
|
Karsten Hopp |
30f24c |
- int dir;
|
|
Karsten Hopp |
30f24c |
- int result; /* result of various function calls */
|
|
Karsten Hopp |
30f24c |
- char_u old_p_ws = p_ws;
|
|
Karsten Hopp |
30f24c |
- int visual_active = FALSE;
|
|
Karsten Hopp |
30f24c |
- int flags = 0;
|
|
Karsten Hopp |
30f24c |
- pos_T save_VIsual;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* wrapping should not occur */
|
|
Karsten Hopp |
30f24c |
- p_ws = FALSE;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* Correct cursor when 'selection' is exclusive */
|
|
Karsten Hopp |
30f24c |
- if (VIsual_active && *p_sel == 'e' && lt(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
- dec_cursor();
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- orig_pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
- save_VIsual = VIsual;
|
|
Karsten Hopp |
30f24c |
- visual_active = TRUE;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* just started visual selection, only one character */
|
|
Karsten Hopp |
30f24c |
- if (equalpos(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
- visual_active = FALSE;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
- start_pos = VIsual;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* make sure, searching further will extend the match */
|
|
Karsten Hopp |
30f24c |
- if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- if (forward)
|
|
Karsten Hopp |
30f24c |
- incl(&pos;;
|
|
Karsten Hopp |
30f24c |
- else
|
|
Karsten Hopp |
30f24c |
- decl(&pos;;
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- else
|
|
Karsten Hopp |
30f24c |
- orig_pos = pos = start_pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /*
|
|
Karsten Hopp |
30f24c |
- * The trick is to first search backwards and then search forward again,
|
|
Karsten Hopp |
30f24c |
- * so that a match at the current cursor position will be correctly
|
|
Karsten Hopp |
30f24c |
- * captured.
|
|
Karsten Hopp |
30f24c |
- */
|
|
Karsten Hopp |
30f24c |
- for (i = 0; i < 2; i++)
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- if (i && count == 1)
|
|
Karsten Hopp |
30f24c |
- flags = SEARCH_START;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- if (forward)
|
|
Karsten Hopp |
30f24c |
- dir = i;
|
|
Karsten Hopp |
30f24c |
- else
|
|
Karsten Hopp |
30f24c |
- dir = !i;
|
|
Karsten Hopp |
30f24c |
- result = searchit(curwin, curbuf, &pos, (dir ? FORWARD : BACKWARD),
|
|
Karsten Hopp |
30f24c |
- spats[last_idx].pat, (long) (i ? count : 1),
|
|
Karsten Hopp |
30f24c |
- SEARCH_KEEP | flags | (dir ? 0 : SEARCH_END),
|
|
Karsten Hopp |
30f24c |
- RE_SEARCH, 0, NULL);
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* First search may fail, but then start searching from the
|
|
Karsten Hopp |
30f24c |
- * beginning of the file (cursor might be on the search match)
|
|
Karsten Hopp |
30f24c |
- * except when Visual mode is active, so that extending the visual
|
|
Karsten Hopp |
30f24c |
- * selection works. */
|
|
Karsten Hopp |
30f24c |
- if (!result && i) /* not found, abort */
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- curwin->w_cursor = orig_pos;
|
|
Karsten Hopp |
30f24c |
- if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
- VIsual = save_VIsual;
|
|
Karsten Hopp |
30f24c |
- p_ws = old_p_ws;
|
|
Karsten Hopp |
30f24c |
- return FAIL;
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- else if (!i && !result && !visual_active)
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- if (forward) /* try again from start of buffer */
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- clearpos(&pos;;
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- else /* try again from end of buffer */
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- /* searching backwards, so set pos to last line and col */
|
|
Karsten Hopp |
30f24c |
- pos.lnum = curwin->w_buffer->b_ml.ml_line_count;
|
|
Karsten Hopp |
30f24c |
- pos.col = STRLEN(ml_get(curwin->w_buffer->b_ml.ml_line_count));
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- start_pos = pos;
|
|
Karsten Hopp |
30f24c |
- flags = (forward ? SEARCH_END : 0);
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- /* move to match */
|
|
Karsten Hopp |
30f24c |
- result = searchit(curwin, curbuf, &pos, (forward ? FORWARD : BACKWARD),
|
|
Karsten Hopp |
30f24c |
- spats[last_idx].pat, 0L, flags | SEARCH_KEEP, RE_SEARCH, 0, NULL);
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- if (!VIsual_active)
|
|
Karsten Hopp |
30f24c |
- VIsual = start_pos;
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- p_ws = old_p_ws;
|
|
Karsten Hopp |
30f24c |
- curwin->w_cursor = pos;
|
|
Karsten Hopp |
30f24c |
- VIsual_active = TRUE;
|
|
Karsten Hopp |
30f24c |
- VIsual_mode = 'v';
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
- {
|
|
Karsten Hopp |
30f24c |
- redraw_curbuf_later(INVERTED); /* update the inversion */
|
|
Karsten Hopp |
30f24c |
- if (*p_sel == 'e' && ltoreq(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
- inc_cursor();
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- #ifdef FEAT_FOLDING
|
|
Karsten Hopp |
30f24c |
- if (fdo_flags & FDO_SEARCH && KeyTyped)
|
|
Karsten Hopp |
30f24c |
- foldOpenCursor();
|
|
Karsten Hopp |
30f24c |
- #endif
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- may_start_select('c');
|
|
Karsten Hopp |
30f24c |
- #ifdef FEAT_MOUSE
|
|
Karsten Hopp |
30f24c |
- setmouse();
|
|
Karsten Hopp |
30f24c |
- #endif
|
|
Karsten Hopp |
30f24c |
- #ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
30f24c |
- /* Make sure the clipboard gets updated. Needed because start and
|
|
Karsten Hopp |
30f24c |
- * end are still the same, and the selection needs to be owned */
|
|
Karsten Hopp |
30f24c |
- clip_star.vmode = NUL;
|
|
Karsten Hopp |
30f24c |
- #endif
|
|
Karsten Hopp |
30f24c |
- redraw_curbuf_later(INVERTED);
|
|
Karsten Hopp |
30f24c |
- showmode();
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
- return OK;
|
|
Karsten Hopp |
30f24c |
- }
|
|
Karsten Hopp |
30f24c |
- #endif /* FEAT_VISUAL */
|
|
Karsten Hopp |
30f24c |
-
|
|
Karsten Hopp |
30f24c |
/*
|
|
Karsten Hopp |
30f24c |
* Find sentence(s) under the cursor, cursor at end.
|
|
Karsten Hopp |
30f24c |
* When Visual active, extend it by one or more sentences.
|
|
Karsten Hopp |
30f24c |
--- 3397,3402 ----
|
|
Karsten Hopp |
30f24c |
***************
|
|
Karsten Hopp |
30f24c |
*** 4670,4675 ****
|
|
Karsten Hopp |
30f24c |
--- 4525,4675 ----
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
#endif /* FEAT_TEXTOBJ */
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
+ #if defined(FEAT_VISUAL) || defined(PROTO)
|
|
Karsten Hopp |
30f24c |
+ /*
|
|
Karsten Hopp |
30f24c |
+ * Find next search match under cursor, cursor at end.
|
|
Karsten Hopp |
30f24c |
+ * Used while an operator is pending, and in Visual mode.
|
|
Karsten Hopp |
30f24c |
+ * TODO: redo only works when used in operator pending mode
|
|
Karsten Hopp |
30f24c |
+ */
|
|
Karsten Hopp |
30f24c |
+ int
|
|
Karsten Hopp |
30f24c |
+ current_search(count, forward)
|
|
Karsten Hopp |
30f24c |
+ long count;
|
|
Karsten Hopp |
30f24c |
+ int forward; /* move forward or backwards */
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ pos_T start_pos; /* position before the pattern */
|
|
Karsten Hopp |
30f24c |
+ pos_T orig_pos; /* position of the cursor at beginning */
|
|
Karsten Hopp |
30f24c |
+ pos_T pos; /* position after the pattern */
|
|
Karsten Hopp |
30f24c |
+ int i;
|
|
Karsten Hopp |
30f24c |
+ int dir;
|
|
Karsten Hopp |
30f24c |
+ int result; /* result of various function calls */
|
|
Karsten Hopp |
30f24c |
+ char_u old_p_ws = p_ws;
|
|
Karsten Hopp |
30f24c |
+ int visual_active = FALSE;
|
|
Karsten Hopp |
30f24c |
+ int flags = 0;
|
|
Karsten Hopp |
30f24c |
+ pos_T save_VIsual;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* wrapping should not occur */
|
|
Karsten Hopp |
30f24c |
+ p_ws = FALSE;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* Correct cursor when 'selection' is exclusive */
|
|
Karsten Hopp |
30f24c |
+ if (VIsual_active && *p_sel == 'e' && lt(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
+ dec_cursor();
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ orig_pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
+ save_VIsual = VIsual;
|
|
Karsten Hopp |
30f24c |
+ visual_active = TRUE;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* just started visual selection, only one character */
|
|
Karsten Hopp |
30f24c |
+ if (equalpos(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
+ visual_active = FALSE;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
+ start_pos = VIsual;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* make sure, searching further will extend the match */
|
|
Karsten Hopp |
30f24c |
+ if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ if (forward)
|
|
Karsten Hopp |
30f24c |
+ incl(&pos;;
|
|
Karsten Hopp |
30f24c |
+ else
|
|
Karsten Hopp |
30f24c |
+ decl(&pos;;
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ else
|
|
Karsten Hopp |
30f24c |
+ orig_pos = pos = start_pos = curwin->w_cursor;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /*
|
|
Karsten Hopp |
30f24c |
+ * The trick is to first search backwards and then search forward again,
|
|
Karsten Hopp |
30f24c |
+ * so that a match at the current cursor position will be correctly
|
|
Karsten Hopp |
30f24c |
+ * captured.
|
|
Karsten Hopp |
30f24c |
+ */
|
|
Karsten Hopp |
30f24c |
+ for (i = 0; i < 2; i++)
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ if (i && count == 1)
|
|
Karsten Hopp |
30f24c |
+ flags = SEARCH_START;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ if (forward)
|
|
Karsten Hopp |
30f24c |
+ dir = i;
|
|
Karsten Hopp |
30f24c |
+ else
|
|
Karsten Hopp |
30f24c |
+ dir = !i;
|
|
Karsten Hopp |
30f24c |
+ result = searchit(curwin, curbuf, &pos, (dir ? FORWARD : BACKWARD),
|
|
Karsten Hopp |
30f24c |
+ spats[last_idx].pat, (long) (i ? count : 1),
|
|
Karsten Hopp |
30f24c |
+ SEARCH_KEEP | flags | (dir ? 0 : SEARCH_END),
|
|
Karsten Hopp |
30f24c |
+ RE_SEARCH, 0, NULL);
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* First search may fail, but then start searching from the
|
|
Karsten Hopp |
30f24c |
+ * beginning of the file (cursor might be on the search match)
|
|
Karsten Hopp |
30f24c |
+ * except when Visual mode is active, so that extending the visual
|
|
Karsten Hopp |
30f24c |
+ * selection works. */
|
|
Karsten Hopp |
30f24c |
+ if (!result && i) /* not found, abort */
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ curwin->w_cursor = orig_pos;
|
|
Karsten Hopp |
30f24c |
+ if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
+ VIsual = save_VIsual;
|
|
Karsten Hopp |
30f24c |
+ p_ws = old_p_ws;
|
|
Karsten Hopp |
30f24c |
+ return FAIL;
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ else if (!i && !result && !visual_active)
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ if (forward) /* try again from start of buffer */
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ clearpos(&pos;;
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ else /* try again from end of buffer */
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ /* searching backwards, so set pos to last line and col */
|
|
Karsten Hopp |
30f24c |
+ pos.lnum = curwin->w_buffer->b_ml.ml_line_count;
|
|
Karsten Hopp |
30f24c |
+ pos.col = STRLEN(ml_get(curwin->w_buffer->b_ml.ml_line_count));
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ start_pos = pos;
|
|
Karsten Hopp |
30f24c |
+ flags = (forward ? SEARCH_END : 0);
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ /* move to match */
|
|
Karsten Hopp |
30f24c |
+ result = searchit(curwin, curbuf, &pos, (forward ? FORWARD : BACKWARD),
|
|
Karsten Hopp |
30f24c |
+ spats[last_idx].pat, 0L, flags | SEARCH_KEEP, RE_SEARCH, 0, NULL);
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ if (!VIsual_active)
|
|
Karsten Hopp |
30f24c |
+ VIsual = start_pos;
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ p_ws = old_p_ws;
|
|
Karsten Hopp |
30f24c |
+ curwin->w_cursor = pos;
|
|
Karsten Hopp |
30f24c |
+ VIsual_active = TRUE;
|
|
Karsten Hopp |
30f24c |
+ VIsual_mode = 'v';
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ if (VIsual_active)
|
|
Karsten Hopp |
30f24c |
+ {
|
|
Karsten Hopp |
30f24c |
+ redraw_curbuf_later(INVERTED); /* update the inversion */
|
|
Karsten Hopp |
30f24c |
+ if (*p_sel == 'e' && ltoreq(VIsual, curwin->w_cursor))
|
|
Karsten Hopp |
30f24c |
+ inc_cursor();
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ #ifdef FEAT_FOLDING
|
|
Karsten Hopp |
30f24c |
+ if (fdo_flags & FDO_SEARCH && KeyTyped)
|
|
Karsten Hopp |
30f24c |
+ foldOpenCursor();
|
|
Karsten Hopp |
30f24c |
+ #endif
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ may_start_select('c');
|
|
Karsten Hopp |
30f24c |
+ #ifdef FEAT_MOUSE
|
|
Karsten Hopp |
30f24c |
+ setmouse();
|
|
Karsten Hopp |
30f24c |
+ #endif
|
|
Karsten Hopp |
30f24c |
+ #ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
30f24c |
+ /* Make sure the clipboard gets updated. Needed because start and
|
|
Karsten Hopp |
30f24c |
+ * end are still the same, and the selection needs to be owned */
|
|
Karsten Hopp |
30f24c |
+ clip_star.vmode = NUL;
|
|
Karsten Hopp |
30f24c |
+ #endif
|
|
Karsten Hopp |
30f24c |
+ redraw_curbuf_later(INVERTED);
|
|
Karsten Hopp |
30f24c |
+ showmode();
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
+ return OK;
|
|
Karsten Hopp |
30f24c |
+ }
|
|
Karsten Hopp |
30f24c |
+ #endif /* FEAT_VISUAL */
|
|
Karsten Hopp |
30f24c |
+
|
|
Karsten Hopp |
30f24c |
#if defined(FEAT_LISP) || defined(FEAT_CINDENT) || defined(FEAT_TEXTOBJ) \
|
|
Karsten Hopp |
30f24c |
|| defined(PROTO)
|
|
Karsten Hopp |
30f24c |
/*
|
|
Karsten Hopp |
30f24c |
*** ../vim-7.3.617/src/version.c 2012-07-27 21:12:03.000000000 +0200
|
|
Karsten Hopp |
30f24c |
--- src/version.c 2012-07-29 12:54:29.000000000 +0200
|
|
Karsten Hopp |
30f24c |
***************
|
|
Karsten Hopp |
30f24c |
*** 716,717 ****
|
|
Karsten Hopp |
30f24c |
--- 716,719 ----
|
|
Karsten Hopp |
30f24c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
30f24c |
+ /**/
|
|
Karsten Hopp |
30f24c |
+ 618,
|
|
Karsten Hopp |
30f24c |
/**/
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
--
|
|
Karsten Hopp |
30f24c |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
30f24c |
185. You order fast food over the Internet
|
|
Karsten Hopp |
30f24c |
|
|
Karsten Hopp |
30f24c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
30f24c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
30f24c |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
30f24c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|