lib/ver/executor/buffer.rb in ver-2010.02 vs lib/ver/executor/buffer.rb in ver-2010.08
- old
+ new
@@ -1,12 +1,12 @@
module VER
class Executor
class ExBuffer < Entry
def setup
callback.update_on_change = true
- @buffers = VER.buffers.map{|name, buffer|
- [Marshal.dump(name), buffer.name.to_s]
+ @buffers = VER.buffers.map{|buffer|
+ [Marshal.dump(buffer.uri), buffer.uri.to_s]
}
tree.configure(
show: [],
columns: %w[name file],
@@ -20,11 +20,11 @@
def action(selected)
item = tree.focus_item
key, name, = item.options(:values)
return unless key
- name = Marshal.load(key)
- Buffer[name].show
+ uri = Marshal.load(key)
+ Buffer[uri].show
callback.destroy(false)
end
end
end
end