aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-04-10 21:59:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-04-10 21:59:44 -0400
commit959f73fca713d749f2fd37ff093dc19ebfb43439 (patch)
tree0efe3af05a8520a03cafc9da7a48e1f9cb7e5ebb /src/textadept.c
parent8f4e032c261e817f939ffd2c65e878d4f6eea0ec (diff)
downloadtextadept-959f73fca713d749f2fd37ff093dc19ebfb43439.tar.gz
textadept-959f73fca713d749f2fd37ff093dc19ebfb43439.zip
More accurate error message; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index e0c9e36f..2c600181 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -2071,7 +2071,7 @@ static int lview__index(lua_State *L) {
static int lview__newindex(lua_State *L) {
const char *key = lua_tostring(L, 2);
if (strcmp(key, "buffer") == 0)
- luaL_argerror(L, 3, "read-only property");
+ luaL_argerror(L, 2, "read-only property");
else if (strcmp(key, "size") == 0) {
int size = luaL_checkinteger(L, 3);
if (size < 0) size = 0;