summaryrefslogtreecommitdiff
path: root/src/unicode.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-11-28 23:53:50 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-11-28 23:58:08 +0000
commit12856066b1065adc99aa1ee0319e91f8eaf522cb (patch)
tree26c8e81b6522d05b1d9632f3f5bd0b19476c413f /src/unicode.hh
parentda6d7f4530f490ec262bd640f9c51d0bc3d5ef53 (diff)
Cleanup include dependencies a bit
Diffstat (limited to 'src/unicode.hh')
-rw-r--r--src/unicode.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unicode.hh b/src/unicode.hh
index 7a33b1fe..1c96e1cd 100644
--- a/src/unicode.hh
+++ b/src/unicode.hh
@@ -5,6 +5,8 @@
#include <wchar.h>
#include <locale>
+#include "units.hh"
+
namespace Kakoune
{
@@ -49,7 +51,7 @@ inline bool is_basic_alpha(Codepoint c)
return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z');
}
-inline size_t codepoint_width(Codepoint c)
+inline ColumnCount codepoint_width(Codepoint c)
{
return c == '\n' ? 1 : wcwidth((wchar_t)c);
}