Key press when scrollTtyKeypress is enabled does not trigger on_view_change hook

Dennis Hofheinz list at kjdf.de
Sun Oct 13 09:35:21 CEST 2024


Hi,

When the scrollTtyKeypress resource is set to true, and view_start is nonzero,
a keypress should update view_start to zero and trigger a refresh. That works,
but this update does not trigger on_view_change, although I guess it should.
Here's a patch that calls the hook in that case.

Best regards
Dennis

--- a/src/command.C
+++ b/src/command.C
@@ -4167,6 +4167,8 @@
       {
         view_start = 0;
         want_refresh = 1;
+
+        HOOK_INVOKE ((this, HOOK_VIEW_CHANGE, DT_INT, view_start, DT_END));
       }
 
   tt_write_ (data, len);



More information about the rxvt-unicode mailing list