aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 58138abc..73fd9591 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1262,7 +1262,8 @@ static int lbuf_property(lua_State *L) {
int ltype = !newindex ? SVOID : l_rawgetiint(L, -1, 4);
int rtype = !newindex ? l_rawgetiint(L, -1, 3) : SVOID;
if (newindex &&
- (ltype != SVOID || wtype == SSTRING || wtype == SSTRINGRET)) {
+ (ltype != SVOID || wtype == SSTRING || wtype == SSTRINGRET ||
+ msg == SCI_SETMARGINLEFT || msg == SCI_SETMARGINRIGHT)) {
int temp = (wtype != SSTRINGRET) ? wtype : SSTRING;
wtype = ltype, ltype = temp;
}