aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/pos.h
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-07-29 21:41:45 +0300
committerZyX <kp-pav@yandex.ru>2017-02-15 02:48:33 +0300
commitefa2682e3b513c4a33d987dc651db5913feff21a (patch)
tree46736cfd53da15a607a332afc79f8359f50bd455 /src/nvim/pos.h
parent2a50ff7e2fa724fc748068ba19012239886b74dd (diff)
downloadrneovim-efa2682e3b513c4a33d987dc651db5913feff21a.tar.gz
rneovim-efa2682e3b513c4a33d987dc651db5913feff21a.tar.bz2
rneovim-efa2682e3b513c4a33d987dc651db5913feff21a.zip
*: Partial string handling refactoring
Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
Diffstat (limited to 'src/nvim/pos.h')
-rw-r--r--src/nvim/pos.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/pos.h b/src/nvim/pos.h
index 864f3fe866..966255e6a4 100644
--- a/src/nvim/pos.h
+++ b/src/nvim/pos.h
@@ -2,6 +2,8 @@
#define NVIM_POS_H
typedef long linenr_T; // line number type
+/// Format used to print values which have linenr_T type
+#define PRIdLINENR "ld"
/// Column number type
typedef int colnr_T;