Mercurial > vim
comparison src/fold.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 | 65946c949965 |
children | 37aa9fd2ed72 |
comparison
equal
deleted
inserted
replaced
29731:df7f360215b7 | 29732:89e1d67814a9 |
---|---|
411 } | 411 } |
412 if (done == DONE_NOTHING) | 412 if (done == DONE_NOTHING) |
413 emsg(_(e_no_fold_found)); | 413 emsg(_(e_no_fold_found)); |
414 // Force a redraw to remove the Visual highlighting. | 414 // Force a redraw to remove the Visual highlighting. |
415 if (had_visual) | 415 if (had_visual) |
416 redraw_curbuf_later(INVERTED); | 416 redraw_curbuf_later(UPD_INVERTED); |
417 } | 417 } |
418 | 418 |
419 // openFold() {{{2 | 419 // openFold() {{{2 |
420 /* | 420 /* |
421 * Open fold for current window at line "lnum". | 421 * Open fold for current window at line "lnum". |
784 if (!did_one) | 784 if (!did_one) |
785 { | 785 { |
786 emsg(_(e_no_fold_found)); | 786 emsg(_(e_no_fold_found)); |
787 // Force a redraw to remove the Visual highlighting. | 787 // Force a redraw to remove the Visual highlighting. |
788 if (had_visual) | 788 if (had_visual) |
789 redraw_curbuf_later(INVERTED); | 789 redraw_curbuf_later(UPD_INVERTED); |
790 } | 790 } |
791 else | 791 else |
792 // Deleting markers may make cursor column invalid. | 792 // Deleting markers may make cursor column invalid. |
793 check_cursor_col(); | 793 check_cursor_col(); |
794 | 794 |
873 */ | 873 */ |
874 void | 874 void |
875 foldUpdateAll(win_T *win) | 875 foldUpdateAll(win_T *win) |
876 { | 876 { |
877 win->w_foldinvalid = TRUE; | 877 win->w_foldinvalid = TRUE; |
878 redraw_win_later(win, NOT_VALID); | 878 redraw_win_later(win, UPD_NOT_VALID); |
879 } | 879 } |
880 | 880 |
881 // foldMoveTo() {{{2 | 881 // foldMoveTo() {{{2 |
882 /* | 882 /* |
883 * If "updown" is FALSE: Move to the start or end of the fold. | 883 * If "updown" is FALSE: Move to the start or end of the fold. |