summaryrefslogtreecommitdiff
path: root/command/marks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/marks.cpp')
-rw-r--r--command/marks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/command/marks.cpp b/command/marks.cpp
index 8d433c4..a59840b 100644
--- a/command/marks.cpp
+++ b/command/marks.cpp
@@ -47,7 +47,7 @@ clMarks::~clMarks()
if (indexfd!=-1) close(indexfd);
}
-int clMarks::Count(int Type)
+int clMarks::Count(int Type, int Mask)
{
if (Type==0xFF) return count;
@@ -57,7 +57,7 @@ int clMarks::Count(int Type)
clMark *mark=first;
while (mark)
{
- if (mark->type==Type) ret++;
+ if ((mark->type & Mask)==Type) ret++;
mark=mark->Next();
}
return ret;