comparison src/textobject.c @ 29732:89e1d67814a9 v9.0.0206

patch 9.0.0206: redraw flags are not named specifically Commit: https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 14 14:17:45 2022 +0100 patch 9.0.0206: redraw flags are not named specifically Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Aug 2022 15:30:05 +0200
parents b6c284c1f095
children bc6cf208b1b4
comparison
equal deleted inserted replaced
29731:df7f360215b7 29732:89e1d67814a9
738 738
739 if (VIsual_active) 739 if (VIsual_active)
740 { 740 {
741 // should do something when inclusive == FALSE ! 741 // should do something when inclusive == FALSE !
742 VIsual = start_pos; 742 VIsual = start_pos;
743 redraw_curbuf_later(INVERTED); // update the inversion 743 redraw_curbuf_later(UPD_INVERTED); // update the inversion
744 } 744 }
745 else 745 else
746 { 746 {
747 oap->start = start_pos; 747 oap->start = start_pos;
748 oap->motion_type = MCHAR; 748 oap->motion_type = MCHAR;
1008 if (*p_sel == 'e') 1008 if (*p_sel == 'e')
1009 ++curwin->w_cursor.col; 1009 ++curwin->w_cursor.col;
1010 VIsual = start_pos; 1010 VIsual = start_pos;
1011 VIsual_mode = 'v'; 1011 VIsual_mode = 'v';
1012 redraw_cmdline = TRUE; // show mode later 1012 redraw_cmdline = TRUE; // show mode later
1013 redraw_curbuf_later(INVERTED); // update the inversion 1013 redraw_curbuf_later(UPD_INVERTED); // update the inversion
1014 } 1014 }
1015 else 1015 else
1016 { 1016 {
1017 // include a newline after the sentence, if there is one 1017 // include a newline after the sentence, if there is one
1018 if (incl(&curwin->w_cursor) == -1) 1018 if (incl(&curwin->w_cursor) == -1)
1165 inc(&curwin->w_cursor); 1165 inc(&curwin->w_cursor);
1166 if (sol && gchar_cursor() != NUL) 1166 if (sol && gchar_cursor() != NUL)
1167 inc(&curwin->w_cursor); // include the line break 1167 inc(&curwin->w_cursor); // include the line break
1168 VIsual = start_pos; 1168 VIsual = start_pos;
1169 VIsual_mode = 'v'; 1169 VIsual_mode = 'v';
1170 redraw_curbuf_later(INVERTED); // update the inversion 1170 redraw_curbuf_later(UPD_INVERTED); // update the inversion
1171 showmode(); 1171 showmode();
1172 } 1172 }
1173 else 1173 else
1174 { 1174 {
1175 oap->start = start_pos; 1175 oap->start = start_pos;
1445 curwin->w_cursor = start_pos; 1445 curwin->w_cursor = start_pos;
1446 else if (*p_sel == 'e') 1446 else if (*p_sel == 'e')
1447 inc_cursor(); 1447 inc_cursor();
1448 VIsual = start_pos; 1448 VIsual = start_pos;
1449 VIsual_mode = 'v'; 1449 VIsual_mode = 'v';
1450 redraw_curbuf_later(INVERTED); // update the inversion 1450 redraw_curbuf_later(UPD_INVERTED); // update the inversion
1451 showmode(); 1451 showmode();
1452 } 1452 }
1453 else 1453 else
1454 { 1454 {
1455 oap->start = start_pos; 1455 oap->start = start_pos;
1628 { 1628 {
1629 VIsual.lnum = start_lnum; 1629 VIsual.lnum = start_lnum;
1630 VIsual.col = 0; 1630 VIsual.col = 0;
1631 } 1631 }
1632 VIsual_mode = 'V'; 1632 VIsual_mode = 'V';
1633 redraw_curbuf_later(INVERTED); // update the inversion 1633 redraw_curbuf_later(UPD_INVERTED); // update the inversion
1634 showmode(); 1634 showmode();
1635 } 1635 }
1636 else 1636 else
1637 { 1637 {
1638 oap->start.lnum = start_lnum; 1638 oap->start.lnum = start_lnum;
1931 || (line[VIsual.col] != quotechar 1931 || (line[VIsual.col] != quotechar
1932 && (VIsual.col == 0 1932 && (VIsual.col == 0
1933 || line[VIsual.col - 1] != quotechar))))) 1933 || line[VIsual.col - 1] != quotechar)))))
1934 { 1934 {
1935 VIsual = curwin->w_cursor; 1935 VIsual = curwin->w_cursor;
1936 redraw_curbuf_later(INVERTED); 1936 redraw_curbuf_later(UPD_INVERTED);
1937 } 1937 }
1938 } 1938 }
1939 else 1939 else
1940 { 1940 {
1941 oap->start = curwin->w_cursor; 1941 oap->start = curwin->w_cursor;