mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
Don't paginate cmd_web/diff except as / commands
This commit is contained in:
parent
c3e08a80eb
commit
11820ba6c1
2 changed files with 3 additions and 3 deletions
|
@ -726,7 +726,7 @@ class Coder:
|
|||
if url not in self.rejected_urls:
|
||||
if self.io.confirm_ask(f"Add {url} to the chat?"):
|
||||
inp += "\n\n"
|
||||
inp += self.commands.cmd_web(url)
|
||||
inp += self.commands.cmd_web(url, paginate=False)
|
||||
added_urls.append(url)
|
||||
else:
|
||||
self.rejected_urls.add(url)
|
||||
|
@ -1643,7 +1643,7 @@ class Coder:
|
|||
self.aider_commit_hashes.add(commit_hash)
|
||||
self.last_aider_commit_message = commit_message
|
||||
if self.show_diffs:
|
||||
self.commands.cmd_diff()
|
||||
self.commands.cmd_diff(paginate=False)
|
||||
|
||||
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class TestScrape(unittest.TestCase):
|
|||
self.commands.io.tool_error = mock_print_error
|
||||
|
||||
# Run the cmd_web command
|
||||
result = self.commands.cmd_web("https://example.com")
|
||||
result = self.commands.cmd_web("https://example.com", paginate=False)
|
||||
|
||||
# Assert that the result contains some content
|
||||
self.assertIsNotNone(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue