diff options
Diffstat (limited to 'lib/sisu/v2/manpage.rb')
-rw-r--r-- | lib/sisu/v2/manpage.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sisu/v2/manpage.rb b/lib/sisu/v2/manpage.rb index 89e0e3d7..48b22fd3 100644 --- a/lib/sisu/v2/manpage.rb +++ b/lib/sisu/v2/manpage.rb @@ -83,13 +83,11 @@ module SiSU_Manpage @md=SiSU_Param::Parameters.new(@opt).get @env=SiSU_Env::Info_env.new(@opt.fns) path=@env.path.output_tell - tool=if @opt.cmd =~/[MVv]/; "#{@env.program.text_editor} #{path}/man/#{@md.fn[:manpage]}" - else '' - end - tell=SiSU_Screen::Ansi.new(@opt.cmd,'Manpage',tool) - tell.green_hi_blue unless @opt.cmd =~/q/ - tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/man/#{@md.fn[:manpage]}") - tell.flow if @opt.cmd =~/[MV]/ + tool=(@opt.cmd =~/[MVv]/) \ + ? "#{@env.program.text_editor} #{path}/man/#{@md.fn[:manpage]}" \ + : '' + SiSU_Screen::Ansi.new(@opt.cmd,'Manpage',tool).green_hi_blue unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output_tell}/man/#{@md.fn[:manpage]}").flow if @opt.cmd =~/[MV]/ my_make=SiSU_Env::Create_file.new(@opt.cmd,@opt.fns) @dal_array=SiSU_DAL::Source.new(@opt).get # dal file drawn here SiSU_Manpage::Source::Scroll.new(@md,@dal_array).songsheet |