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

Find and replace doesn't work in a comment box #720

Open
toddobryan opened this issue Feb 19, 2025 · 5 comments
Open

Find and replace doesn't work in a comment box #720

toddobryan opened this issue Feb 19, 2025 · 5 comments

Comments

@toddobryan
Copy link

The Next and Prev buttons don't seem to work correctly and after you replace something, the find ovals don't end up in the right place.

@toddobryan
Copy link
Author

But this in a comment box and try replacing posn-fun.

;; posn-fun -> ?
;; consumes:
;; produces:
(define (posn-fun a-posn)
  (posn-x a-posn)
  (posn-y a-posn))

(check-expect (posn-fun ...) ...)
(check-expect (posn-fun ...) ...)
(check-expect (posn-fun ...) ...)

@racket-discourse-github-bot

This issue has been mentioned on Racket Discourse. There might be relevant details there:

https://racket.discourse.group/t/a-few-annoying-bugs/3582/1

@rfindler
Copy link
Member

I'm seeing a weird lag when I try to do follow your instructions, but I'm not seeing any other bad behavior. Do you think you could record a video? Maybe then I'd be able to get it. Or maybe just a fuller explanation would also work.

@shhyou
Copy link
Collaborator

shhyou commented Feb 26, 2025

Trying to find-and-replace pattern with xyz in this code blows the contents of the comment box away:

The file is created by inserting a comment box at line 5,

#lang htdp/bsl

;; this is a pattern

and then put the following text into the comment box,

this is some pattern
that is another pattern
there are many patterns

(Unfortunately I can't upload Racket source code here.)

@rfindler
Copy link
Member

Thanks! I'm able to reproduce it with those instructions @shhyou

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

4 participants