diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-11-10 22:51:52 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-11-10 22:51:52 +0000 |
| commit | bc1d1ba59f031c2d320564b53dd31f069b97464e (patch) | |
| tree | 36e0058c9978757b61d89bc1399556fb52dfec0b /src/normal.cc | |
| parent | 03a6561f5006207b1674dd0aa8474ce048caa79c (diff) | |
Fix warnings
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index 74810f62..932488f5 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -812,7 +812,7 @@ static CharCount get_column(const Buffer& buffer, auto& line = buffer[coord.line]; auto col = 0_char; for (auto it = line.begin(); - it != line.end() and ByteCount{it - line.begin()} < coord.column; + it != line.end() and coord.column > (int)(it - line.begin()); it = utf8::next(it)) { if (*it == '\t') |
