summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 97e7e83223..8ebc8ceb81 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -46,6 +46,12 @@
#define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b))
/*
+ * VIM_ISWHITE() is used for "^" and the like. It differs from isspace()
+ * because it doesn't include <CR> and <LF> and the like.
+ */
+#define VIM_ISWHITE(x) ((x) == ' ' || (x) == '\t')
+
+/*
* LINEEMPTY() - return TRUE if the line is empty
*/
#define LINEEMPTY(p) (*ml_get(p) == NUL)