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 #5291)
diff --git a/src/evalwindow.c b/src/evalwindow.c
index 7691693..34d202e 100644
--- a/src/evalwindow.c
+++ b/src/evalwindow.c
@@ -103,7 +103,7 @@
*tpp = tp;
return wp;
}
-#ifdef FEAT_TEXT_PROP
+#ifdef FEAT_PROP_POPUP
// popup windows are in separate lists
FOR_ALL_TABPAGES(tp)
for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
@@ -181,7 +181,7 @@
}
if (nr >= LOWEST_WIN_ID)
{
-#ifdef FEAT_TEXT_PROP
+#ifdef FEAT_PROP_POPUP
// check tab-local popup windows
for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
if (wp->w_id == nr)
@@ -199,6 +199,7 @@
/*
* Find a window: When using a Window ID in any tab page, when using a number
* in the current tab page.
+ * Returns NULL when not found.
*/
win_T *
find_win_by_nr_or_id(typval_T *vp)
@@ -1137,7 +1138,7 @@
curwin = save_curwin;
curbuf = curwin->w_buffer;
}
-# ifdef FEAT_TEXT_PROP
+# ifdef FEAT_PROP_POPUP
else if (WIN_IS_POPUP(curwin))
// original window was closed and now we're in a popup window: Go
// to the first valid window.