Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acme: win(1) doesn't handle the new MR/Mr events (shift-clicks) #664

Open
mbivert opened this issue Aug 23, 2024 · 0 comments
Open

acme: win(1) doesn't handle the new MR/Mr events (shift-clicks) #664

mbivert opened this issue Aug 23, 2024 · 0 comments

Comments

@mbivert
Copy link

mbivert commented Aug 23, 2024

0c79c32 recently added new MR/Mr events to trigger backward search on shift-click; those events aren't handled in src/cmd/9term/win.c:

unknown message MR
unknown message MR

Forwarding them essentially (acme(4) doesn't mention the use of a flag for R/r) as we do for ML/Ml seems to do the job:

% git diff win.c
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
index 9c7a12eb..c2e58086 100644
--- a/src/cmd/9term/win.c
+++ b/src/cmd/9term/win.c
@@ -464,6 +464,9 @@ stdinproc(void *v)
 				/* just send it back */
 				if(e.flag & 2)
 					gete(efd, &e2);
+				// fallthrough
+			case 'r':
+			case 'R':
 				fsfidprint(efd, "%c%c%d %d\n", e.c1, e.c2, e.q0, e.q1);
 				break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant