summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-07 22:31:44 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-07 22:31:44 +0200
commit40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8 (patch)
tree35de952db98f597df68144ef4ab99a294177861d /src/vim.h
parentde3b3677f7eace66be454196db0fbf710cfc8c5e (diff)
downloadvim-git-40385dbcdfb44885f2e9b83e1e0285aeb8a0c2a8.tar.gz
patch 8.1.0253: saving and restoring window title does not always workv8.1.0253
Problem: Saving and restoring window title does not always work. Solution: Use the stack push and pop commands. (Kouichi Iwamoto, closes #3059)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index a85d47f5e..524ed9213 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2548,4 +2548,16 @@ typedef enum {
#define TERM_START_FORCEIT 2
#define TERM_START_SYSTEM 4
+#if defined(HAVE_DROP_FILE) \
+ || (defined(FEAT_GUI_GTK) && defined(FEAT_DND)) \
+ || defined(FEAT_GUI_MSWIN) \
+ || defined(FEAT_GUI_MAC)
+# define HAVE_HANDLE_DROP
+#endif
+
+// Used for icon/title save and restore.
+#define SAVE_RESTORE_TITLE 1
+#define SAVE_RESTORE_ICON 2
+#define SAVE_RESTORE_BOTH (SAVE_RESTORE_TITLE | SAVE_RESTORE_ICON)
+
#endif /* VIM__H */