diff options
Diffstat (limited to '')
-rw-r--r-- | main.c | 40 |
1 files changed, 39 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.145 2002/11/19 17:47:59 ukai Exp $ */ +/* $Id: main.c,v 1.146 2002/11/21 16:15:58 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -3699,6 +3699,44 @@ nextU(void) nextY(-1); } +/* go to the next bufferr */ +void +nextBf(void) +{ + Buffer *buf; + int i; + + for (i = 0; i < PREC_NUM; i++) { + buf = prevBuffer(Firstbuf, Currentbuf); + if (!buf) { + if (i == 0) + return; + break; + } + Currentbuf = buf; + } + displayBuffer(Currentbuf, B_FORCE_REDRAW); +} + +/* go to the previous bufferr */ +void +prevBf(void) +{ + Buffer *buf; + int i; + + for (i = 0; i < PREC_NUM; i++) { + buf = Currentbuf->nextBuffer; + if (!buf) { + if (i == 0) + return; + break; + } + Currentbuf = buf; + } + displayBuffer(Currentbuf, B_FORCE_REDRAW); +} + static int checkBackBuffer(Buffer *buf) { |