aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo_defs.h
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-01-10 20:52:48 +0100
committerFlorian Walch <florian@fwalch.com>2015-04-08 18:33:54 +0300
commitdea2731184f23521f5eae03ab46cbe811b8825b7 (patch)
treec5e8bd2fc9e1ee9a98620eafe45675c4b15a87c2 /src/nvim/undo_defs.h
parent95db8df682ea7ac392a1e9a6de45a6ccc0727df1 (diff)
downloadrneovim-dea2731184f23521f5eae03ab46cbe811b8825b7.tar.gz
rneovim-dea2731184f23521f5eae03ab46cbe811b8825b7.tar.bz2
rneovim-dea2731184f23521f5eae03ab46cbe811b8825b7.zip
vim-patch: Port parts of Vim 7.4.399.
Resolves #1753. https://code.google.com/p/vim/source/detail?r=v7-4-399 Reviewed-by: Felipe Oliveira Carvalho <felipekde@gmail.com> Helped-by: David Bürgin <676c7473@gmail.com> Helped-by: Scott Prager <splinterofchaos@gmail.com> Helped-by: Michael Reed <m.reed@mykolab.com> Helped-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Diffstat (limited to 'src/nvim/undo_defs.h')
-rw-r--r--src/nvim/undo_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/undo_defs.h b/src/nvim/undo_defs.h
index 2579f13b93..610adb4367 100644
--- a/src/nvim/undo_defs.h
+++ b/src/nvim/undo_defs.h
@@ -4,6 +4,7 @@
#include <time.h> // for time_t
#include "nvim/pos.h"
+#include "nvim/buffer_defs.h"
/* Structure to store info about the Visual area. */
typedef struct {
@@ -67,4 +68,10 @@ struct u_header {
#define UH_CHANGED 0x01 /* b_changed flag before undo/after redo */
#define UH_EMPTYBUF 0x02 /* buffer was empty */
+/// Structure passed around between undofile functions.
+typedef struct {
+ buf_T *bi_buf;
+ FILE *bi_fp;
+} bufinfo_T;
+
#endif // NVIM_UNDO_DEFS_H