diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-26 16:16:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-26 16:16:53 +0100 |
commit | b3f740695a0199d22cd97aee314f06c7ae32d2ea (patch) | |
tree | 8221662bb578d80a7a044f8a20aef09394a5a1a8 /src/screen.c | |
parent | d672dde584effd55702ee15efec4cb2a8c77bf85 (diff) | |
download | vim-git-b3f740695a0199d22cd97aee314f06c7ae32d2ea.tar.gz |
patch 8.2.0320: no Haiku supportv8.2.0320
Problem: No Haiku support.
Solution: Add support for Haiku. (Emir Sari, closes #5605)
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 795e749ff..713360039 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2549,6 +2549,10 @@ retry: win_new_shellsize(); // fit the windows in the new sized shell +#ifdef FEAT_GUI_HAIKU + vim_lock_screen(); // be safe, put it here +#endif + comp_col(); // recompute columns for shown command and ruler /* @@ -2799,6 +2803,10 @@ give_up: #endif clear_TabPageIdxs(); +#ifdef FEAT_GUI_HAIKU + vim_unlock_screen(); +#endif + entered = FALSE; --RedrawingDisabled; @@ -3646,6 +3654,10 @@ screen_ins_lines( clip_scroll_selection(-line_count); #endif +#ifdef FEAT_GUI_HAIKU + vim_lock_screen(); +#endif + #ifdef FEAT_GUI // Don't update the GUI cursor here, ScreenLines[] is invalid until the // scrolling is actually carried out. @@ -3700,6 +3712,10 @@ screen_ins_lines( } } +#ifdef FEAT_GUI_HAIKU + vim_unlock_screen(); +#endif + screen_stop_highlight(); windgoto(cursor_row, cursor_col); if (clear_attr != 0) @@ -3928,6 +3944,10 @@ screen_del_lines( } } +#ifdef FEAT_GUI_HAIKU + vim_unlock_screen(); +#endif + if (screen_attr != clear_attr) screen_stop_highlight(); if (clear_attr != 0) |