public
Fork of defunkt/cheat
Description: Cheating is fun!
Homepage: http://cheat.errtheblog.com
Clone URL: git://github.com/bmizerany/cheat.git
Add a catch-all rescue around run_pager. If the pager fails, that's fine, 
we can just keep going.
nex3 (author)
Sat Mar 15 22:53:18 -0700 2008
commit  1349ce1418d42a3f74b1b3711c4cf82210ce3866
tree    d98ee7ca435655cc84e89ed2f56ef78df1c60f93
parent  f4dd230b135672f25c5d1bb5b7691feedaceb04b
...
181
182
183
 
184
185
186
...
181
182
183
184
185
186
187
0
@@ -181,6 +181,7 @@ module Cheat
0
     write.close
0
     ENV['LESS'] = 'FSRX' # Don't page if the input is short enough
0
     exec ENV['PAGER'] || 'less'
0
+ rescue
0
   end
0
 end
0
 

Comments

    No one has commented yet.