tangled
alpha
login
or
join now
rockorager.dev
/
comlink
2
fork
atom
an experimental irc client
2
fork
atom
overview
issues
pulls
pipelines
fix: actually fix markread_on_focus
rockorager.dev
1 year ago
538115cd
271accc6
verified
This commit was signed with the committer's
known signature
.
rockorager.dev
SSH Key Fingerprint:
SHA256:qn/Fjy7CpbcogGEPB14Y53hLnQleZNFY9lkQnuudFLs=
+9
-3
2 changed files
expand all
collapse all
unified
split
src
app.zig
lua.zig
+8
-2
src/app.zig
···
287
287
288
288
.focus_in => {
289
289
if (self.config.markread_on_focus) {
290
290
-
// TODO: implement this
291
291
-
290
290
+
if (self.selectedBuffer()) |buffer| {
291
291
+
switch (buffer) {
292
292
+
.client => {},
293
293
+
.channel => |channel| {
294
294
+
channel.last_read_indicator = channel.last_read;
295
295
+
},
296
296
+
}
297
297
+
}
292
298
}
293
299
self.has_focus = true;
294
300
ctx.redraw = true;
+1
-1
src/lua.zig
···
221
221
222
222
const field_enum = std.meta.stringToEnum(comlink.Config.Fields(), field) orelse continue;
223
223
switch (field_enum) {
224
224
-
.markread_on_focus => app.config.markread_on_focus = lua.toBoolean(1),
224
224
+
.markread_on_focus => app.config.markread_on_focus = lua.toBoolean(-1),
225
225
}
226
226
}
227
227
return 0;