From b7a3d80bde0fc0fbf20c72f5980e1674de808248 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 9 Feb 2018 20:30:33 +1100 Subject: CommandManager: Use byte rather than columns for token positions Not only are display columns rarely used to give error positions, but they make the parsing much slower as for each token we need to compute the column in the line. --- src/command_manager.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command_manager.hh') diff --git a/src/command_manager.hh b/src/command_manager.hh index d3ecab18..87ce3f1c 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -57,7 +57,7 @@ struct Token Type type; ByteCount begin; ByteCount end; - DisplayCoord coord; + BufferCoord coord; String content; }; @@ -99,7 +99,7 @@ private: void execute_single_command(CommandParameters params, Context& context, const ShellContext& shell_context, - DisplayCoord pos); + BufferCoord pos); struct Command { -- cgit v1.2.3