From 11820ba6c1fd220966ca420e74f538c9ea302a9d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Aug 2024 17:29:52 -0400 Subject: [PATCH] Don't paginate cmd_web/diff except as / commands --- aider/coders/base_coder.py | 4 ++-- tests/scrape/test_scrape.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index ffda3acec..6f31bb817 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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}.") diff --git a/tests/scrape/test_scrape.py b/tests/scrape/test_scrape.py index c5c1fda83..413569a9f 100644 --- a/tests/scrape/test_scrape.py +++ b/tests/scrape/test_scrape.py @@ -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)