0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.0320: no Haiku support

Problem:    No Haiku support.
Solution:   Add support for Haiku. (Emir Sari, closes #5605)
This commit is contained in:
Bram Moolenaar
2020-02-26 16:16:53 +01:00
parent d672dde584
commit b3f740695a
41 changed files with 6321 additions and 160 deletions

View File

@@ -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)