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

Bug: Acme: Sam command language is inconsistent with Sam #672

Open
spektrokalter opened this issue Sep 30, 2024 · 0 comments
Open

Bug: Acme: Sam command language is inconsistent with Sam #672

spektrokalter opened this issue Sep 30, 2024 · 0 comments

Comments

@spektrokalter
Copy link

Bug: Acme: Sam command language is inconsistent with Sam

Steps to reproduce the problem

Consider the following sample text:

?? hello
 A world
UU earth

The purpose is to replace the first two characters in each line with "git add".

Let's run the following command:

{
	x -#0+/../ c/git add/
	-#0,+#0
}

What does the -#0,+#0 do? In theory, I'm not sure. In Sam, it doesn't seem to do anything. In Acme, however, it tries to preserve the original selection (whether intentionally or not, I'm not sure). In this particular case, it does so successfully. In others, it fails.

But it is not expected, if we compare it with Sam's behavior.

plan9port version

a2567fc

OS version

macOS 14.5 (23F79)

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