visits added

This commit is contained in:
p.kosyh 2011-04-30 05:20:51 +00:00
parent d3ecce69aa
commit 45adf05197
2 changed files with 7 additions and 0 deletions

1
debian/changelog vendored
View file

@ -19,6 +19,7 @@ instead (1.4.0) unstable; urgency=low
* toggle_menu added;
* get_ticks added;
* bit_xxx bitwise operations added;
* visits() added;
-- Peter Kosyh <p.kosyh@gmail.com> Tue, 27 Apr 2011 11:01:00 +0400

View file

@ -168,6 +168,12 @@ function visited(w)
return w.__visited
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
local l
if st then