Karsten Hopp 460ba9
To: vim-dev@vim.org
Karsten Hopp 460ba9
Subject: patch 7.1.058
Karsten Hopp 460ba9
Fcc: outbox
Karsten Hopp 460ba9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 460ba9
Mime-Version: 1.0
Karsten Hopp 460ba9
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 460ba9
Content-Transfer-Encoding: 8bit
Karsten Hopp 460ba9
------------
Karsten Hopp 460ba9
Karsten Hopp 460ba9
Patch 7.1.058
Karsten Hopp 460ba9
Problem:    When 'rightleft' is set the completion menu is positioned wrong.
Karsten Hopp 460ba9
	    (Baha-Eddine MOKADEM)
Karsten Hopp 460ba9
Solution:   Fix the completion menu. (Martin Toft)
Karsten Hopp 460ba9
Files:	    src/popupmnu.c, src/proto/search.pro, src/search.c
Karsten Hopp 460ba9
Karsten Hopp 460ba9
Karsten Hopp 460ba9
*** ../vim-7.1.057/src/popupmnu.c	Thu Jun 28 21:23:52 2007
Karsten Hopp 460ba9
--- src/popupmnu.c	Wed Aug  1 15:43:06 2007
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 75,81 ****
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
      row = curwin->w_cline_row + W_WINROW(curwin);
Karsten Hopp 460ba9
      height = curwin->w_cline_height;
Karsten Hopp 460ba9
-     col = curwin->w_wcol + W_WINCOL(curwin) - curwin->w_leftcol;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
      if (firstwin->w_p_pvw)
Karsten Hopp 460ba9
  	top_clear = firstwin->w_height;
Karsten Hopp 460ba9
--- 75,80 ----
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 167,172 ****
Karsten Hopp 460ba9
--- 166,180 ----
Karsten Hopp 460ba9
      pum_base_width = max_width;
Karsten Hopp 460ba9
      pum_kind_width = kind_width;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
+     /* Calculate column */
Karsten Hopp 460ba9
+ #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
+     if (curwin->w_p_rl)
Karsten Hopp 460ba9
+ 	col = W_WINCOL(curwin) + W_WIDTH(curwin) - curwin->w_wcol -
Karsten Hopp 460ba9
+ 							curwin->w_leftcol - 1;
Karsten Hopp 460ba9
+     else
Karsten Hopp 460ba9
+ #endif
Karsten Hopp 460ba9
+ 	col = W_WINCOL(curwin) + curwin->w_wcol - curwin->w_leftcol;
Karsten Hopp 460ba9
+ 
Karsten Hopp 460ba9
      /* if there are more items than room we need a scrollbar */
Karsten Hopp 460ba9
      if (pum_height < size)
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 179,189 ****
Karsten Hopp 460ba9
      if (def_width < max_width)
Karsten Hopp 460ba9
  	def_width = max_width;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
!     if (col < Columns - PUM_DEF_WIDTH || col < Columns - max_width)
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	/* align pum column with "col" */
Karsten Hopp 460ba9
  	pum_col = col;
Karsten Hopp 460ba9
! 	pum_width = Columns - pum_col - pum_scrollbar;
Karsten Hopp 460ba9
  	if (pum_width > max_width + kind_width + extra_width + 1
Karsten Hopp 460ba9
  						 && pum_width > PUM_DEF_WIDTH)
Karsten Hopp 460ba9
  	{
Karsten Hopp 460ba9
--- 187,209 ----
Karsten Hopp 460ba9
      if (def_width < max_width)
Karsten Hopp 460ba9
  	def_width = max_width;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
!     if (((col < Columns - PUM_DEF_WIDTH || col < Columns - max_width)
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 		&& !curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    || (curwin->w_p_rl && (col > PUM_DEF_WIDTH || col > max_width)
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
!        ))
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	/* align pum column with "col" */
Karsten Hopp 460ba9
  	pum_col = col;
Karsten Hopp 460ba9
! 
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    pum_width = pum_col - pum_scrollbar + 1;
Karsten Hopp 460ba9
! 	else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    pum_width = Columns - pum_col - pum_scrollbar;
Karsten Hopp 460ba9
! 
Karsten Hopp 460ba9
  	if (pum_width > max_width + kind_width + extra_width + 1
Karsten Hopp 460ba9
  						 && pum_width > PUM_DEF_WIDTH)
Karsten Hopp 460ba9
  	{
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 195,208 ****
Karsten Hopp 460ba9
      else if (Columns < def_width)
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	/* not enough room, will use what we have */
Karsten Hopp 460ba9
! 	pum_col = 0;
Karsten Hopp 460ba9
  	pum_width = Columns - 1;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
      else
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	if (max_width > PUM_DEF_WIDTH)
Karsten Hopp 460ba9
  	    max_width = PUM_DEF_WIDTH;	/* truncate */
Karsten Hopp 460ba9
! 	pum_col = Columns - max_width;
Karsten Hopp 460ba9
  	pum_width = max_width - pum_scrollbar;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
--- 215,238 ----
Karsten Hopp 460ba9
      else if (Columns < def_width)
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	/* not enough room, will use what we have */
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    pum_col = Columns - 1;
Karsten Hopp 460ba9
! 	else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    pum_col = 0;
Karsten Hopp 460ba9
  	pum_width = Columns - 1;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
      else
Karsten Hopp 460ba9
      {
Karsten Hopp 460ba9
  	if (max_width > PUM_DEF_WIDTH)
Karsten Hopp 460ba9
  	    max_width = PUM_DEF_WIDTH;	/* truncate */
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    pum_col = max_width - 1;
Karsten Hopp 460ba9
! 	else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    pum_col = Columns - max_width;
Karsten Hopp 460ba9
  	pum_width = max_width - pum_scrollbar;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 255,262 ****
Karsten Hopp 460ba9
  	attr = (idx == pum_selected) ? attr_select : attr_norm;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	/* prepend a space if there is room */
Karsten Hopp 460ba9
! 	if (pum_col > 0)
Karsten Hopp 460ba9
! 	    screen_putchar(' ', row, pum_col - 1, attr);
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	/* Display each entry, use two spaces for a Tab.
Karsten Hopp 460ba9
  	 * Do this 3 times: For the main text, kind and extra info */
Karsten Hopp 460ba9
--- 285,300 ----
Karsten Hopp 460ba9
  	attr = (idx == pum_selected) ? attr_select : attr_norm;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	/* prepend a space if there is room */
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	{
Karsten Hopp 460ba9
! 	    if (pum_col < W_WINCOL(curwin) + W_WIDTH(curwin) - 1)
Karsten Hopp 460ba9
! 		screen_putchar(' ', row, pum_col + 1, attr);
Karsten Hopp 460ba9
! 	}
Karsten Hopp 460ba9
! 	else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    if (pum_col > 0)
Karsten Hopp 460ba9
! 		screen_putchar(' ', row, pum_col - 1, attr);
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	/* Display each entry, use two spaces for a Tab.
Karsten Hopp 460ba9
  	 * Do this 3 times: For the main text, kind and extra info */
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 282,307 ****
Karsten Hopp 460ba9
  		    {
Karsten Hopp 460ba9
  			/* Display the text that fits or comes before a Tab.
Karsten Hopp 460ba9
  			 * First convert it to printable characters. */
Karsten Hopp 460ba9
! 			char_u *st;
Karsten Hopp 460ba9
! 			int  saved = *p;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			*p = NUL;
Karsten Hopp 460ba9
  			st = transstr(s);
Karsten Hopp 460ba9
  			*p = saved;
Karsten Hopp 460ba9
! 			if (st != NULL)
Karsten Hopp 460ba9
  			{
Karsten Hopp 460ba9
! 			    screen_puts_len(st, (int)STRLEN(st), row, col,
Karsten Hopp 460ba9
  									attr);
Karsten Hopp 460ba9
! 			    vim_free(st);
Karsten Hopp 460ba9
  			}
Karsten Hopp 460ba9
- 			col += width;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			if (*p != TAB)
Karsten Hopp 460ba9
  			    break;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			/* Display two spaces for a Tab. */
Karsten Hopp 460ba9
! 			screen_puts_len((char_u *)"  ", 2, row, col, attr);
Karsten Hopp 460ba9
! 			col += 2;
Karsten Hopp 460ba9
  			totwidth += 2;
Karsten Hopp 460ba9
  			s = NULL;	    /* start text at next char */
Karsten Hopp 460ba9
  			width = 0;
Karsten Hopp 460ba9
--- 320,386 ----
Karsten Hopp 460ba9
  		    {
Karsten Hopp 460ba9
  			/* Display the text that fits or comes before a Tab.
Karsten Hopp 460ba9
  			 * First convert it to printable characters. */
Karsten Hopp 460ba9
! 			char_u	*st;
Karsten Hopp 460ba9
! 			int	saved = *p;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			*p = NUL;
Karsten Hopp 460ba9
  			st = transstr(s);
Karsten Hopp 460ba9
  			*p = saved;
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 			if (curwin->w_p_rl)
Karsten Hopp 460ba9
  			{
Karsten Hopp 460ba9
! 			    if (st != NULL)
Karsten Hopp 460ba9
! 			    {
Karsten Hopp 460ba9
! 				char_u	*rt = reverse_text(st);
Karsten Hopp 460ba9
! 				char_u	*rt_saved = rt;
Karsten Hopp 460ba9
! 				int	len, j;
Karsten Hopp 460ba9
! 
Karsten Hopp 460ba9
! 				if (rt != NULL)
Karsten Hopp 460ba9
! 				{
Karsten Hopp 460ba9
! 				    len = STRLEN(rt);
Karsten Hopp 460ba9
! 				    if (len > pum_width)
Karsten Hopp 460ba9
! 				    {
Karsten Hopp 460ba9
! 					for (j = pum_width; j < len; ++j)
Karsten Hopp 460ba9
! 					    mb_ptr_adv(rt);
Karsten Hopp 460ba9
! 					len = pum_width;
Karsten Hopp 460ba9
! 				    }
Karsten Hopp 460ba9
! 				    screen_puts_len(rt, len, row,
Karsten Hopp 460ba9
! 							col - len + 1, attr);
Karsten Hopp 460ba9
! 				    vim_free(rt_saved);
Karsten Hopp 460ba9
! 				}
Karsten Hopp 460ba9
! 				vim_free(st);
Karsten Hopp 460ba9
! 			    }
Karsten Hopp 460ba9
! 			    col -= width;
Karsten Hopp 460ba9
! 			}
Karsten Hopp 460ba9
! 			else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 			{
Karsten Hopp 460ba9
! 			    if (st != NULL)
Karsten Hopp 460ba9
! 			    {
Karsten Hopp 460ba9
! 				screen_puts_len(st, (int)STRLEN(st), row, col,
Karsten Hopp 460ba9
  									attr);
Karsten Hopp 460ba9
! 				vim_free(st);
Karsten Hopp 460ba9
! 			    }
Karsten Hopp 460ba9
! 			    col += width;
Karsten Hopp 460ba9
  			}
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			if (*p != TAB)
Karsten Hopp 460ba9
  			    break;
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  			/* Display two spaces for a Tab. */
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 			if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 			{
Karsten Hopp 460ba9
! 			    screen_puts_len((char_u *)"  ", 2, row, col - 1,
Karsten Hopp 460ba9
! 									attr);
Karsten Hopp 460ba9
! 			    col -= 2;
Karsten Hopp 460ba9
! 			}
Karsten Hopp 460ba9
! 			else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 			{
Karsten Hopp 460ba9
! 			    screen_puts_len((char_u *)"  ", 2, row, col, attr);
Karsten Hopp 460ba9
! 			    col += 2;
Karsten Hopp 460ba9
! 			}
Karsten Hopp 460ba9
  			totwidth += 2;
Karsten Hopp 460ba9
  			s = NULL;	    /* start text at next char */
Karsten Hopp 460ba9
  			width = 0;
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 322,338 ****
Karsten Hopp 460ba9
  					  && pum_array[idx].pum_extra == NULL)
Karsten Hopp 460ba9
  		    || pum_base_width + n >= pum_width)
Karsten Hopp 460ba9
  		break;
Karsten Hopp 460ba9
! 	    screen_fill(row, row + 1, col, pum_col + pum_base_width + n,
Karsten Hopp 460ba9
  							      ' ', ' ', attr);
Karsten Hopp 460ba9
! 	    col = pum_col + pum_base_width + n;
Karsten Hopp 460ba9
  	    totwidth = pum_base_width + n;
Karsten Hopp 460ba9
  	}
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
! 	screen_fill(row, row + 1, col, pum_col + pum_width, ' ', ' ', attr);
Karsten Hopp 460ba9
  	if (pum_scrollbar > 0)
Karsten Hopp 460ba9
! 	    screen_putchar(' ', row, pum_col + pum_width,
Karsten Hopp 460ba9
! 		    i >= thumb_pos && i < thumb_pos + thumb_heigth
Karsten Hopp 460ba9
  						  ? attr_thumb : attr_scroll);
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	++row;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
--- 401,444 ----
Karsten Hopp 460ba9
  					  && pum_array[idx].pum_extra == NULL)
Karsten Hopp 460ba9
  		    || pum_base_width + n >= pum_width)
Karsten Hopp 460ba9
  		break;
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	    if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    {
Karsten Hopp 460ba9
! 		screen_fill(row, row + 1, pum_col - pum_base_width - n + 1,
Karsten Hopp 460ba9
! 						    col + 1, ' ', ' ', attr);
Karsten Hopp 460ba9
! 		col = pum_col - pum_base_width - n + 1;
Karsten Hopp 460ba9
! 	    }
Karsten Hopp 460ba9
! 	    else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    {
Karsten Hopp 460ba9
! 		screen_fill(row, row + 1, col, pum_col + pum_base_width + n,
Karsten Hopp 460ba9
  							      ' ', ' ', attr);
Karsten Hopp 460ba9
! 		col = pum_col + pum_base_width + n;
Karsten Hopp 460ba9
! 	    }
Karsten Hopp 460ba9
  	    totwidth = pum_base_width + n;
Karsten Hopp 460ba9
  	}
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 	    screen_fill(row, row + 1, pum_col - pum_width + 1, col + 1, ' ',
Karsten Hopp 460ba9
! 								    ' ', attr);
Karsten Hopp 460ba9
! 	else
Karsten Hopp 460ba9
! #endif
Karsten Hopp 460ba9
! 	    screen_fill(row, row + 1, col, pum_col + pum_width, ' ', ' ',
Karsten Hopp 460ba9
! 									attr);
Karsten Hopp 460ba9
  	if (pum_scrollbar > 0)
Karsten Hopp 460ba9
! 	{
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
! 	    if (curwin->w_p_rl)
Karsten Hopp 460ba9
! 		screen_putchar(' ', row, pum_col - pum_width,
Karsten Hopp 460ba9
! 			i >= thumb_pos && i < thumb_pos + thumb_heigth
Karsten Hopp 460ba9
  						  ? attr_thumb : attr_scroll);
Karsten Hopp 460ba9
+ 	    else
Karsten Hopp 460ba9
+ #endif
Karsten Hopp 460ba9
+ 		screen_putchar(' ', row, pum_col + pum_width,
Karsten Hopp 460ba9
+ 			i >= thumb_pos && i < thumb_pos + thumb_heigth
Karsten Hopp 460ba9
+ 						  ? attr_thumb : attr_scroll);
Karsten Hopp 460ba9
+ 	}
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  	++row;
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
*** ../vim-7.1.057/src/proto/search.pro	Sat May  5 20:20:36 2007
Karsten Hopp 460ba9
--- src/proto/search.pro	Wed Aug  1 12:41:25 2007
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 1,6 ****
Karsten Hopp 460ba9
--- 1,7 ----
Karsten Hopp 460ba9
  /* search.c */
Karsten Hopp 460ba9
  int search_regcomp __ARGS((char_u *pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch));
Karsten Hopp 460ba9
  char_u *get_search_pat __ARGS((void));
Karsten Hopp 460ba9
+ char_u *reverse_text __ARGS((char_u *s));
Karsten Hopp 460ba9
  void save_search_patterns __ARGS((void));
Karsten Hopp 460ba9
  void restore_search_patterns __ARGS((void));
Karsten Hopp 460ba9
  void free_search_patterns __ARGS((void));
Karsten Hopp 460ba9
*** ../vim-7.1.057/src/search.c	Tue Jul 10 13:27:46 2007
Karsten Hopp 460ba9
--- src/search.c	Wed Aug  1 12:39:22 2007
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 101,107 ****
Karsten Hopp 460ba9
  static char_u	    *mr_pattern = NULL;	/* pattern used by search_regcomp() */
Karsten Hopp 460ba9
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
  static int	    mr_pattern_alloced = FALSE; /* mr_pattern was allocated */
Karsten Hopp 460ba9
- static char_u	    *reverse_text __ARGS((char_u *s));
Karsten Hopp 460ba9
  #endif
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  #ifdef FEAT_FIND_ID
Karsten Hopp 460ba9
--- 101,106 ----
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 228,239 ****
Karsten Hopp 460ba9
      return mr_pattern;
Karsten Hopp 460ba9
  }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
! #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
  /*
Karsten Hopp 460ba9
   * Reverse text into allocated memory.
Karsten Hopp 460ba9
   * Returns the allocated string, NULL when out of memory.
Karsten Hopp 460ba9
   */
Karsten Hopp 460ba9
!     static char_u *
Karsten Hopp 460ba9
  reverse_text(s)
Karsten Hopp 460ba9
      char_u *s;
Karsten Hopp 460ba9
  {
Karsten Hopp 460ba9
--- 227,238 ----
Karsten Hopp 460ba9
      return mr_pattern;
Karsten Hopp 460ba9
  }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
! #if defined(FEAT_RIGHTLEFT) || defined(PROTO)
Karsten Hopp 460ba9
  /*
Karsten Hopp 460ba9
   * Reverse text into allocated memory.
Karsten Hopp 460ba9
   * Returns the allocated string, NULL when out of memory.
Karsten Hopp 460ba9
   */
Karsten Hopp 460ba9
!     char_u *
Karsten Hopp 460ba9
  reverse_text(s)
Karsten Hopp 460ba9
      char_u *s;
Karsten Hopp 460ba9
  {
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 1898,1904 ****
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
!     /* This is just guessing: when 'rightleft' is set, search for a maching
Karsten Hopp 460ba9
       * paren/brace in the other direction. */
Karsten Hopp 460ba9
      if (curwin->w_p_rl && vim_strchr((char_u *)"()[]{}<>", initc) != NULL)
Karsten Hopp 460ba9
  	backwards = !backwards;
Karsten Hopp 460ba9
--- 1897,1903 ----
Karsten Hopp 460ba9
      }
Karsten Hopp 460ba9
  
Karsten Hopp 460ba9
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 460ba9
!     /* This is just guessing: when 'rightleft' is set, search for a matching
Karsten Hopp 460ba9
       * paren/brace in the other direction. */
Karsten Hopp 460ba9
      if (curwin->w_p_rl && vim_strchr((char_u *)"()[]{}<>", initc) != NULL)
Karsten Hopp 460ba9
  	backwards = !backwards;
Karsten Hopp 460ba9
*** ../vim-7.1.057/src/version.c	Wed Aug  8 21:41:19 2007
Karsten Hopp 460ba9
--- src/version.c	Wed Aug  8 22:44:49 2007
Karsten Hopp 460ba9
***************
Karsten Hopp 460ba9
*** 668,669 ****
Karsten Hopp 460ba9
--- 668,671 ----
Karsten Hopp 460ba9
  {   /* Add new patch number below this line */
Karsten Hopp 460ba9
+ /**/
Karsten Hopp 460ba9
+     58,
Karsten Hopp 460ba9
  /**/
Karsten Hopp 460ba9
Karsten Hopp 460ba9
-- 
Karsten Hopp 460ba9
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 460ba9
99. The hum of a cooling fan and the click of keys is comforting to you.
Karsten Hopp 460ba9
Karsten Hopp 460ba9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 460ba9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 460ba9
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 460ba9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///