Mercurial > vim
comparison src/main.c @ 16904:9138e2c60bf1 v8.1.1453
patch 8.1.1453: popup window "moved" property not implemented yet
commit https://github.com/vim/vim/commit/3397f74ac2ac27f1eef48e950c3c8eeb0338fe55
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 2 18:40:06 2019 +0200
patch 8.1.1453: popup window "moved" property not implemented yet
Problem: Popup window "moved" property not implemented yet.
Solution: Implement it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jun 2019 18:45:06 +0200 |
parents | ef00b6bc186b |
children | b27d06bd0fde |
comparison
equal
deleted
inserted
replaced
16903:52ff7612af87 | 16904:9138e2c60bf1 |
---|---|
1157 #endif | 1157 #endif |
1158 | 1158 |
1159 /* Trigger CursorMoved if the cursor moved. */ | 1159 /* Trigger CursorMoved if the cursor moved. */ |
1160 if (!finish_op && ( | 1160 if (!finish_op && ( |
1161 has_cursormoved() | 1161 has_cursormoved() |
1162 #ifdef FEAT_TEXT_PROP | |
1163 || popup_visible | |
1164 #endif | |
1162 #ifdef FEAT_CONCEAL | 1165 #ifdef FEAT_CONCEAL |
1163 || curwin->w_p_cole > 0 | 1166 || curwin->w_p_cole > 0 |
1164 #endif | 1167 #endif |
1165 ) | 1168 ) |
1166 && !EQUAL_POS(last_cursormoved, curwin->w_cursor)) | 1169 && !EQUAL_POS(last_cursormoved, curwin->w_cursor)) |
1167 { | 1170 { |
1168 if (has_cursormoved()) | 1171 if (has_cursormoved()) |
1169 apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, | 1172 apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, |
1170 FALSE, curbuf); | 1173 FALSE, curbuf); |
1171 # ifdef FEAT_CONCEAL | 1174 #ifdef FEAT_TEXT_PROP |
1175 if (popup_visible) | |
1176 popup_check_cursor_pos(); | |
1177 #endif | |
1178 #ifdef FEAT_CONCEAL | |
1172 if (curwin->w_p_cole > 0) | 1179 if (curwin->w_p_cole > 0) |
1173 { | 1180 { |
1174 conceal_old_cursor_line = last_cursormoved.lnum; | 1181 conceal_old_cursor_line = last_cursormoved.lnum; |
1175 conceal_new_cursor_line = curwin->w_cursor.lnum; | 1182 conceal_new_cursor_line = curwin->w_cursor.lnum; |
1176 conceal_update_lines = TRUE; | 1183 conceal_update_lines = TRUE; |
1177 } | 1184 } |
1178 # endif | 1185 #endif |
1179 last_cursormoved = curwin->w_cursor; | 1186 last_cursormoved = curwin->w_cursor; |
1180 } | 1187 } |
1181 | 1188 |
1182 #if defined(FEAT_CONCEAL) | 1189 #if defined(FEAT_CONCEAL) |
1183 if (conceal_update_lines | 1190 if (conceal_update_lines |