diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-02-09 20:30:33 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-02-09 20:30:33 +1100 |
| commit | b7a3d80bde0fc0fbf20c72f5980e1674de808248 (patch) | |
| tree | 56676d73e99213fb7afdf5a450581d947bf54dd7 /src/command_manager.hh | |
| parent | 39c0c0335108daf2a447d1043d33187dfbb06d8d (diff) | |
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.
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
