lib/repl.rb in runeblog-0.3.25 vs lib/repl.rb in runeblog-0.3.26

- old
+ new

@@ -249,11 +249,11 @@ string = "#{'%-25s' % title} #{name}" viewnames[string] = name end n = viewnames.values.find_index(@blog.view.name) name = @blog.view.name - k, name = STDSCR.menu(title: "Views", items: viewnames, curr: n) + k, name = STDSCR.menu(title: "Views", items: viewnames, curr: n, wrap: true) return if name.nil? log! str: "cv Setting to #{name.inspect}" @blog.view = name # puts "\n ", fx(name, :bold), "\n" return @@ -416,10 +416,9 @@ puts curr_drafts.each do |draft| base = draft.sub(/.lt3$/, "") dir = @blog.root/:posts/base meta = nil -puts "Trying chdir into #{dir}..." Dir.chdir(dir) { meta = @blog.read_metadata } num, title = meta.num, meta.title num = '%4d' % num.to_s puts " ", fx(num, Red), " ", fx(title, Black) other = @blog._get_views(@blog.root/:drafts/draft) - [@blog.view.to_s]