From 3eadc5a7912384ef404c9cfa2bcea0eba81f3a2c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 25 Jul 2017 09:52:28 -0400 Subject: Properly handle `buffer.margin_left` and `buffer.margin_right`. Scintilla's iface for them is different than similar properties. --- src/textadept.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3