Changeset - b012c4f5326b
[Not reviewed]
default
0 0 1
Silverwing - 4 years ago 2020-09-05 09:54:11

Missing file
1 file changed with 28 insertions and 0 deletions:
0 comments (0 inline, 0 general)
link.lua
Show inline comments
 
new file 100644
 
require "fmt"
 

	
 
if not instead.atleast(3, 2) then
 
	std.dprint("Warning: link module is not functional on this INSTEAD version")
 
	function instead.clipboard()
 
		return false
 
	end
 
end
 

	
 
obj {
 
	nam = '$link';
 
	act = function(s, w)
 
		if not instead.clipboard or instead.clipboard() ~= w then
 
			std.pr ('{@link ', w, '|', w, '}')
 
		else
 
			std.pr(fmt.u (w) ..' [в буфере обмена]')
 
		end
 
	end;
 
}
 

	
 
obj {
 
	nam = '@link';
 
	act = function(s, w)
 
		if instead.clipboard then
 
			instead.clipboard(w)
 
		end
 
	end;
 
}
0 comments (0 inline, 0 general)