comparison src/if_lua.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 e134ff00be57
children 029c59bf78f1
comparison
equal deleted inserted replaced
29731:df7f360215b7 29732:89e1d67814a9
1541 luaL_error(L, "cannot insert line"); 1541 luaL_error(L, "cannot insert line");
1542 } 1542 }
1543 else 1543 else
1544 appended_lines_mark(n, 1L); 1544 appended_lines_mark(n, 1L);
1545 curbuf = buf; 1545 curbuf = buf;
1546 update_screen(VALID); 1546 update_screen(UPD_VALID);
1547 return 0; 1547 return 0;
1548 } 1548 }
1549 1549
1550 static int 1550 static int
1551 luaV_buffer_next(lua_State *L) 1551 luaV_buffer_next(lua_State *L)
1643 luaV_checksandbox(L); 1643 luaV_checksandbox(L);
1644 #endif 1644 #endif
1645 if (v < 1 || v > w->w_buffer->b_ml.ml_line_count) 1645 if (v < 1 || v > w->w_buffer->b_ml.ml_line_count)
1646 luaL_error(L, "line out of range"); 1646 luaL_error(L, "line out of range");
1647 w->w_cursor.lnum = v; 1647 w->w_cursor.lnum = v;
1648 update_screen(VALID); 1648 update_screen(UPD_VALID);
1649 } 1649 }
1650 else if (strncmp(s, "col", 3) == 0) 1650 else if (strncmp(s, "col", 3) == 0)
1651 { 1651 {
1652 #ifdef HAVE_SANDBOX 1652 #ifdef HAVE_SANDBOX
1653 luaV_checksandbox(L); 1653 luaV_checksandbox(L);
1654 #endif 1654 #endif
1655 w->w_cursor.col = v - 1; 1655 w->w_cursor.col = v - 1;
1656 w->w_set_curswant = TRUE; 1656 w->w_set_curswant = TRUE;
1657 update_screen(VALID); 1657 update_screen(UPD_VALID);
1658 } 1658 }
1659 else if (strncmp(s, "width", 5) == 0) 1659 else if (strncmp(s, "width", 5) == 0)
1660 { 1660 {
1661 win_T *win = curwin; 1661 win_T *win = curwin;
1662 #ifdef FEAT_GUI 1662 #ifdef FEAT_GUI
1912 { 1912 {
1913 char_u *s = vim_strsave((char_u *)luaL_checkstring(L, 1)); 1913 char_u *s = vim_strsave((char_u *)luaL_checkstring(L, 1));
1914 1914
1915 execute_cmds_from_string(s); 1915 execute_cmds_from_string(s);
1916 vim_free(s); 1916 vim_free(s);
1917 update_screen(VALID); 1917 update_screen(UPD_VALID);
1918 return 0; 1918 return 0;
1919 } 1919 }
1920 1920
1921 static int 1921 static int
1922 luaV_eval(lua_State *L) 1922 luaV_eval(lua_State *L)
2659 } 2659 }
2660 lua_pop(L, 1); // line 2660 lua_pop(L, 1); // line
2661 } 2661 }
2662 lua_pop(L, 1); // function 2662 lua_pop(L, 1); // function
2663 check_cursor(); 2663 check_cursor();
2664 update_screen(NOT_VALID); 2664 update_screen(UPD_NOT_VALID);
2665 } 2665 }
2666 2666
2667 void 2667 void
2668 ex_luafile(exarg_T *eap) 2668 ex_luafile(exarg_T *eap)
2669 { 2669 {