ref: 991aa18611972ab26900162fc1d967b570cdd878
parent: 35fd1a27372902e8d02190191e960133431c27f1
author: Ali Gholami Rudi <[email protected]>
date: Thu May 2 01:22:02 EDT 2013
tr: .ls has no default scale indicator
--- a/ren.c
+++ b/ren.c
@@ -238,8 +238,8 @@
ren_sp(els_pos);
n_a = els_pos;
if (!ren_traps(prev_d, n_d, 0)) {
- if (n_L > n_v && (cdiv || n_d < n_p)) {
- down(n_L - n_v);
+ if (n_L > 1 && (cdiv || n_d < n_p)) {
+ down(n_L * n_v - n_v);
} else {
if (ren_pagelimit(0))
return 1;
--- a/tr.c
+++ b/tr.c
@@ -28,7 +28,7 @@
static void tr_ls(char **args)
{
- int ls = args[1] ? eval_re(args[1], n_L, 'v') : n_L0;
+ int ls = args[1] ? eval_re(args[1], n_L, 0) : n_L0;
n_L0 = n_L;
n_L = MAX(1, ls);
}