projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f9512f7
)
limits on next/prev line routines
author
Shawn Boyette
<sboyette@esilibrary.com>
Tue, 11 Nov 2008 15:31:18 +0000 (15:31 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Tue, 11 Nov 2008 15:31:18 +0000 (15:31 +0000)
marc-cleanup
patch
|
blob
|
history
diff --git
a/marc-cleanup
b/marc-cleanup
index
0d222dc
..
96f3250
100755
(executable)
--- a/
marc-cleanup
+++ b/
marc-cleanup
@@
-394,13
+394,13
@@
sub dump_record {
}
sub next_line {
- $ptr++;
+ $ptr++ unless ($ptr == $#record);;
print_linecontext();
return 0;
}
sub prev_line {
- $ptr--;
+ $ptr-- unless ($ptr == 0);
print_linecontext();
return 0;
}