diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-11 17:52:28 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 20:21:46 -0600 |
| commit | 06d7681cfffbc3e982fe192db4190f124b2b0848 (patch) | |
| tree | af1d349cdca3890ce0b616789f719121b254a98b /vis-lua.c | |
| parent | 4c2b2d8a100a67212134c1bb89fad39311fa441e (diff) | |
| download | vis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.gz vis-06d7681cfffbc3e982fe192db4190f124b2b0848.tar.xz | |
make Selection unopaque
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |
