summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 1e2edd82..3750f4cb 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -1040,23 +1040,6 @@ void save_selections(Context& context, int)
" selections", get_color("Information") });
}
-static CharCount get_column(const Buffer& buffer,
- CharCount tabstop, BufferCoord coord)
-{
- auto& line = buffer[coord.line];
- auto col = 0_char;
- for (auto it = line.begin();
- it != line.end() and coord.column > (int)(it - line.begin());
- it = utf8::next(it))
- {
- if (*it == '\t')
- col = (col / tabstop + 1) * tabstop;
- else
- ++col;
- }
- return col;
-}
-
void align(Context& context, int)
{
auto& selections = context.selections();