
Having the same type to specify coordinates in window space or buffer space is error prone, now the compiler will tell if we use one for another.
19 lines
251 B
C++
19 lines
251 B
C++
#ifndef utils_hh_INCLUDED
|
|
#define utils_hh_INCLUDED
|
|
|
|
namespace Kakoune
|
|
{
|
|
|
|
struct LineAndColumn
|
|
{
|
|
int line;
|
|
int column;
|
|
|
|
LineAndColumn(int line = 0, int column = 0)
|
|
: line(line), column(column) {}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // utils_hh_INCLUDED
|