mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Merge
This commit is contained in:
commit
e0a8e90ad9
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
VERSION = "1.0.0"
|
||||
-- VERSION = "1.0.0"
|
||||
if GetOption("literate") == nil then
|
||||
AddOption("literate", true)
|
||||
end
|
||||
|
||||
function startswith(str, start)
|
||||
return string.sub(str,1,string.len(start))==start
|
||||
|
@ -16,6 +19,7 @@ function split(string, sep)
|
|||
end
|
||||
|
||||
function onViewOpen(view)
|
||||
if not GetOption("literate") then return end
|
||||
if not endswith(view.Buf.Path, ".lit") then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue