Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Upcoming Release (TBD)
======================

Bug Fixes
--------
* Help Windows installations find a working default pager.


Internal
--------

Expand Down
5 changes: 5 additions & 0 deletions mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,11 @@ def configure_pager(self):

cnf = self.read_my_cnf_files(self.cnf_files, ["pager", "skip-pager"])
cnf_pager = cnf["pager"] or self.config["main"]["pager"]

# help Windows users who haven't edited the default myclirc
if WIN and cnf_pager == 'less' and not shutil.which(cnf_pager):
cnf_pager = 'more'

if cnf_pager:
special.set_pager(cnf_pager)
self.explicit_pager = True
Expand Down