simonpcouch / pal

LLM assistants for R
https://simonpcouch.github.io/pal/
Other
5 stars 3 forks source link

remainder of ending line is replaced even when non-empty #35

Open simonpcouch opened 5 days ago

simonpcouch commented 5 days ago

standardize_selection() currently adjusts the selection to encompass all of the remainder of the ending line. e.g. if I select just some text (with no quotes) in:

rlang::abort(
  "some text",
  call = call
)

...the quote at the end of the line will be replaced.