aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/file_io.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2014-06-04 22:12:45 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2014-06-04 22:12:45 -0400
commitcf5190cebe13d9ccb579455c7fcd8f205da3d6bb (patch)
treeb59cb2ae073238a66969a7ac14e9fe0a59af2e62 /core/file_io.lua
parent4586dbadae4d0f5347491a6c1b02d7ea5bb077a1 (diff)
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.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua4
1 files changed, 2 insertions, 2 deletions
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