aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/pos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/pos.h')
-rw-r--r--src/nvim/pos.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/pos.h b/src/nvim/pos.h
new file mode 100644
index 0000000000..df6e0e5c39
--- /dev/null
+++ b/src/nvim/pos.h
@@ -0,0 +1,23 @@
+#ifndef NEOVIM_POS_H
+#define NEOVIM_POS_H
+
+/*
+ * position in file or buffer
+ */
+typedef struct {
+ linenr_T lnum; /* line number */
+ colnr_T col; /* column number */
+ colnr_T coladd;
+} pos_T;
+
+# define INIT_POS_T(l, c, ca) {l, c, ca}
+
+/*
+ * Same, but without coladd.
+ */
+typedef struct {
+ linenr_T lnum; /* line number */
+ colnr_T col; /* column number */
+} lpos_T;
+
+#endif /* NEOVIM_POS_H */