For those who likes to code ❤ (#113)

This commit is contained in:
devdl11
2021-12-28 14:13:01 +00:00
committed by GitHub
parent 70b162e63b
commit 0860e48cb6
7 changed files with 34 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ public:
constexpr ScriptTemplate(const char * name, const char * value) : m_name(name), m_value(value) {}
static const ScriptTemplate * Empty();
const char * name() const { return m_name; }
const char * content() const { return m_value + Script::StatusSize(); }
const char * content() const { return m_value + Script::StatusSize() + Script::CursorPositionSize(); }
const char * value() const { return m_value; }
private:
const char * m_name;