@@ -5339,31 +5339,6 @@ block_prep(oap, bdp, lnum, is_del)
53395339 bdp -> textstart = pstart ;
53405340}
53415341
5342- #ifdef FEAT_RIGHTLEFT
5343- static void reverse_line __ARGS ((char_u * s ));
5344-
5345- static void
5346- reverse_line (s )
5347- char_u * s ;
5348- {
5349- int i , j ;
5350- char_u c ;
5351-
5352- if ((i = (int )STRLEN (s ) - 1 ) <= 0 )
5353- return ;
5354-
5355- curwin -> w_cursor .col = i - curwin -> w_cursor .col ;
5356- for (j = 0 ; j < i ; j ++ , i -- )
5357- {
5358- c = s [i ]; s [i ] = s [j ]; s [j ] = c ;
5359- }
5360- }
5361-
5362- # define RLADDSUBFIX (ptr ) if (curwin->w_p_rl) reverse_line(ptr);
5363- #else
5364- # define RLADDSUBFIX (ptr )
5365- #endif
5366-
53675342/*
53685343 * add or subtract 'Prenum1' from a number in a line
53695344 * 'command' is CTRL-A for add, CTRL-X for subtract
@@ -5426,7 +5401,6 @@ do_addsub(command, Prenum1, g_cmd)
54265401 }
54275402
54285403 ptr = ml_get (VIsual .lnum );
5429- RLADDSUBFIX (ptr );
54305404 if (VIsual_mode == 'V' )
54315405 {
54325406 VIsual .col = 0 ;
@@ -5457,7 +5431,6 @@ do_addsub(command, Prenum1, g_cmd)
54575431 else
54585432 {
54595433 ptr = ml_get_curline ();
5460- RLADDSUBFIX (ptr );
54615434
54625435 if (dobin )
54635436 while (col > 0 && vim_isbdigit (ptr [col ]))
@@ -5526,7 +5499,6 @@ do_addsub(command, Prenum1, g_cmd)
55265499 t = curwin -> w_cursor ;
55275500 curwin -> w_cursor .lnum = i ;
55285501 ptr = ml_get_curline ();
5529- RLADDSUBFIX (ptr );
55305502 if ((int )STRLEN (ptr ) <= col )
55315503 /* try again on next line */
55325504 continue ;
@@ -5812,10 +5784,6 @@ do_addsub(command, Prenum1, g_cmd)
58125784 col = 0 ;
58135785 Prenum1 += offset ;
58145786 curwin -> w_set_curswant = TRUE;
5815- #ifdef FEAT_RIGHTLEFT
5816- ptr = ml_get_buf (curbuf , curwin -> w_cursor .lnum , TRUE);
5817- RLADDSUBFIX (ptr );
5818- #endif
58195787 }
58205788 if (visual )
58215789 /* cursor at the top of the selection */
0 commit comments