From cf5190cebe13d9ccb579455c7fcd8f205da3d6bb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 4 Jun 2014 22:12:45 -0400 Subject: Pressing "Enter" in message buffer simulates double-click. In a "Find in Files" buffer, goes to the file on the current line. In a message buffer, jumps to the error or warning on the current line. --- core/file_io.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index 6c66632e..a79f907c 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -206,7 +206,7 @@ local function set_encoding(buffer, encoding) buffer.encoding, buffer.encoding_bom = encoding, io.boms[encoding] end -- Sets the default buffer encoding. -events_connect(events.BUFFER_NEW, function() +events_connect(events.BUFFER_NEW, function() buffer.set_encoding, buffer.encoding = set_encoding, 'UTF-8' end) @@ -361,7 +361,7 @@ local vcs = {'.bzr', '.git', '.hg', '.svn', 'CVS'} -- @param path Optional filesystem path to a project or a file contained within -- a project. The default value is the buffer's filename or the current -- working directory. --- @return string root +-- @return string root or nil -- @name get_project_root function io.get_project_root(path) local root -- cgit v1.2.3