aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2024-05-11 17:52:28 -0600
committerRandy Palamar <randy@rnpnr.xyz>2024-05-21 20:21:46 -0600
commit06d7681cfffbc3e982fe192db4190f124b2b0848 (patch)
treeaf1d349cdca3890ce0b616789f719121b254a98b /vis-lua.c
parent4c2b2d8a100a67212134c1bb89fad39311fa441e (diff)
downloadvis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.gz
vis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.xz
make Selection unopaque
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis-lua.c b/vis-lua.c
index c51a924..e8911f1 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -2363,7 +2363,7 @@ static int window_selection_index(lua_State *L) {
}
if (strcmp(key, "anchored") == 0) {
- lua_pushboolean(L, view_selections_anchored(sel));
+ lua_pushboolean(L, sel->anchored);
return 1;
}
@@ -2388,7 +2388,7 @@ static int window_selection_newindex(lua_State *L) {
Filerange range = getrange(L, 3);
if (text_range_valid(&range)) {
view_selections_set(sel, &range);
- view_selections_anchor(sel, true);
+ sel->anchored = true;
} else {
view_selection_clear(sel);
}
@@ -2396,7 +2396,7 @@ static int window_selection_newindex(lua_State *L) {
}
if (strcmp(key, "anchored") == 0) {
- view_selections_anchor(sel, lua_toboolean(L, 3));
+ sel->anchored = lua_toboolean(L, 3);
return 0;
}
}