43 lines
1020 B
Diff
43 lines
1020 B
Diff
From e8a6d86824b5138877598b112578eb96c34c9faa Mon Sep 17 00:00:00 2001
|
|
From: Mark Nudelman <markn@greenwoodsoftware.com>
|
|
Date: Sun, 3 May 2020 13:12:20 -0700
|
|
Subject: [PATCH] Remove unnecessary and incorrectly used variable
|
|
same_pos_bell.
|
|
---
|
|
forwback.c | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/forwback.c b/forwback.c
|
|
index ab4e4f6..3e8abc6 100644
|
|
--- a/forwback.c
|
|
+++ b/forwback.c
|
|
@@ -13,7 +13,6 @@ public int screen_trashed;
|
|
public int squished;
|
|
public int no_back_scroll = 0;
|
|
public int forw_prompt;
|
|
-public int same_pos_bell = 1;
|
|
|
|
extern int sigs;
|
|
extern int top_scroll;
|
|
@@ -278,7 +277,7 @@ forw(n, pos, force, only_last, nblank)
|
|
forw_prompt = 1;
|
|
}
|
|
|
|
- if (nlines == 0 && !ignore_eoi && same_pos_bell)
|
|
+ if (nlines == 0 && !ignore_eoi)
|
|
eof_bell();
|
|
else if (do_repaint)
|
|
repaint();
|
|
@@ -338,7 +337,7 @@ back(n, pos, force, only_last)
|
|
}
|
|
}
|
|
|
|
- if (nlines == 0 && same_pos_bell)
|
|
+ if (nlines == 0)
|
|
eof_bell();
|
|
else if (do_repaint)
|
|
repaint();
|
|
--
|
|
1.8.3.1
|
|
|