Permalink
Browse files

Close list upon escape

  • Loading branch information...
1 parent 397836f commit 75f0e81166550da94258ac6e96b4b767eb7f9c0f @nilnor committed Feb 1, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 buffer_list.lua
View
@@ -80,6 +80,7 @@ function M.show(buffers)
list.headers = { 'Name', 'Directory' }
list.on_selection = on_selection
list.keys.cd = close_buffer
+ list.keys.esc = function() list:close() end
end
list.items = get_buffer_items()
list:show()

0 comments on commit 75f0e81

Please sign in to comment.