patch 8.1.1919: using window options when passing a buffer to popup_create()

Problem:    Using current window option values when passing a buffer to
            popup_create().
Solution:   Clear the window-local options. (closes #4857)
diff --git a/src/popupwin.c b/src/popupwin.c
index 995ae5d..e8abf6d 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1543,6 +1543,7 @@
 	// use existing buffer
 	new_buffer = FALSE;
 	win_init_popup_win(wp, buf);
+	set_local_options_default(wp, FALSE);
 	buffer_ensure_loaded(buf);
     }
     else
@@ -1556,7 +1557,7 @@
 
 	win_init_popup_win(wp, buf);
 
-	set_local_options_default(wp);
+	set_local_options_default(wp, TRUE);
 	set_string_option_direct_in_buf(buf, (char_u *)"buftype", -1,
 				     (char_u *)"popup", OPT_FREE|OPT_LOCAL, 0);
 	set_string_option_direct_in_buf(buf, (char_u *)"bufhidden", -1,