Mercurial > vim
diff src/ui.c @ 18763:49b78d6465e5 v8.1.2371
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Commit: https://github.com/vim/vim/commit/05ad5ff0ab34ed9a5296dedd420ca81698b8ce22
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 22:48:27 2019 +0100
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes https://github.com/vim/vim/issues/5291)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 23:00:05 +0100 |
parents | fd95d4dbeb37 |
children | 15539899a112 |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -1079,7 +1079,7 @@ clip_compare_pos( clip_start_selection(int col, int row, int repeated_click) { Clipboard_T *cb = &clip_star; -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP win_T *wp; int row_cp = row; int col_cp = col; @@ -1103,7 +1103,7 @@ clip_start_selection(int col, int row, i cb->end = cb->start; cb->origin_row = (short_u)cb->start.lnum; cb->state = SELECT_IN_PROGRESS; -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP if (wp != NULL && WIN_IS_POPUP(wp)) { // Click in a popup window restricts selection to that window, @@ -1455,7 +1455,7 @@ clip_invert_area( int invert = FALSE; int max_col; -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP max_col = cbd->max_col - 1; #else max_col = Columns - 1; @@ -1526,7 +1526,7 @@ clip_invert_rectangle( int height = height_arg; int width = width_arg; -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP // this goes on top of all popup windows screen_zindex = CLIP_ZINDEX; @@ -1551,7 +1551,7 @@ clip_invert_rectangle( else #endif screen_draw_rectangle(row, col, height, width, invert); -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP screen_zindex = 0; #endif } @@ -1594,7 +1594,7 @@ clip_copy_modeless_selection(int both UN { row = col1; col1 = col2; col2 = row; } -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP if (col1 < clip_star.min_col) col1 = clip_star.min_col; if (col2 > clip_star.max_col) @@ -1629,7 +1629,7 @@ clip_copy_modeless_selection(int both UN if (row == row1) start_col = col1; else -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP start_col = clip_star.min_col; #else start_col = 0; @@ -1638,7 +1638,7 @@ clip_copy_modeless_selection(int both UN if (row == row2) end_col = col2; else -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP end_col = clip_star.max_col; #else end_col = Columns; @@ -1648,7 +1648,7 @@ clip_copy_modeless_selection(int both UN /* See if we need to nuke some trailing whitespace */ if (end_col >= -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP clip_star.max_col #else Columns @@ -1814,7 +1814,7 @@ clip_get_line_end(Clipboard_T *cbd UNUSE if (row >= screen_Rows || ScreenLines == NULL) return 0; for (i = -#ifdef FEAT_TEXT_PROP +#ifdef FEAT_PROP_POPUP cbd->max_col; #else screen_Columns;