visits added
This commit is contained in:
parent
d3ecce69aa
commit
45adf05197
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -19,6 +19,7 @@ instead (1.4.0) unstable; urgency=low
|
||||||
* toggle_menu added;
|
* toggle_menu added;
|
||||||
* get_ticks added;
|
* get_ticks added;
|
||||||
* bit_xxx bitwise operations added;
|
* bit_xxx bitwise operations added;
|
||||||
|
* visits() added;
|
||||||
|
|
||||||
-- Peter Kosyh <p.kosyh@gmail.com> Tue, 27 Apr 2011 11:01:00 +0400
|
-- Peter Kosyh <p.kosyh@gmail.com> Tue, 27 Apr 2011 11:01:00 +0400
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,12 @@ function visited(w)
|
||||||
return w.__visited
|
return w.__visited
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function visits(w)
|
||||||
|
local n = visited(w)
|
||||||
|
if not n then n = 0 end
|
||||||
|
return n
|
||||||
|
end
|
||||||
|
|
||||||
iface.fmt = function(self, cmd, st, moved, r, av, objs, pv) -- st -- changed state (main win), move -- loc changed
|
iface.fmt = function(self, cmd, st, moved, r, av, objs, pv) -- st -- changed state (main win), move -- loc changed
|
||||||
local l
|
local l
|
||||||
if st then
|
if st then
|
||||||
|
|
Loading…
Reference in a new issue