Mercurial > vim
comparison src/main.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 | 432e1535ef2c |
children | 68ef14b21d01 |
comparison
equal
deleted
inserted
replaced
29731:df7f360215b7 | 29732:89e1d67814a9 |
---|---|
684 if (exmode_active | 684 if (exmode_active |
685 #ifdef FEAT_GUI | 685 #ifdef FEAT_GUI |
686 && !gui.in_use | 686 && !gui.in_use |
687 #endif | 687 #endif |
688 ) | 688 ) |
689 must_redraw = CLEAR; | 689 must_redraw = UPD_CLEAR; |
690 else | 690 else |
691 { | 691 { |
692 screenclear(); // clear screen | 692 screenclear(); // clear screen |
693 TIME_MSG("clearing screen"); | 693 TIME_MSG("clearing screen"); |
694 } | 694 } |
786 // Must be done before redrawing, puts a few characters on the screen. | 786 // Must be done before redrawing, puts a few characters on the screen. |
787 check_terminal_behavior(); | 787 check_terminal_behavior(); |
788 #endif | 788 #endif |
789 | 789 |
790 RedrawingDisabled = 0; | 790 RedrawingDisabled = 0; |
791 redraw_all_later(NOT_VALID); | 791 redraw_all_later(UPD_NOT_VALID); |
792 no_wait_return = FALSE; | 792 no_wait_return = FALSE; |
793 | 793 |
794 // 'autochdir' has been postponed | 794 // 'autochdir' has been postponed |
795 DO_AUTOCHDIR; | 795 DO_AUTOCHDIR; |
796 | 796 |
1410 */ | 1410 */ |
1411 update_topline(); | 1411 update_topline(); |
1412 validate_cursor(); | 1412 validate_cursor(); |
1413 | 1413 |
1414 if (VIsual_active) | 1414 if (VIsual_active) |
1415 update_curbuf(INVERTED); // update inverted part | 1415 update_curbuf(UPD_INVERTED); // update inverted part |
1416 else if (must_redraw) | 1416 else if (must_redraw) |
1417 { | 1417 { |
1418 mch_disable_flush(); // Stop issuing gui_mch_flush(). | 1418 mch_disable_flush(); // Stop issuing gui_mch_flush(). |
1419 update_screen(0); | 1419 update_screen(0); |
1420 mch_enable_flush(); | 1420 mch_enable_flush(); |