top: allow setting variable width col scroll (1 vs. 8)
The Inspection feature already offered an INSP_SLIDE_1
provision. This patch now offers similar extensions to
variable width column scrolling (assuming SCROLLVAR_NO
isn't defined). Such a provision was useful during the
development of some recent library UTF-8 enhancements.
Reference(s):
. 12/30/20, newlib branch equivalent commit
commit edce9ed612
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
401d587d2d
commit
5ae84fac6e
@ -54,6 +54,7 @@
|
|||||||
//#define RECALL_FIXED /* don't reorder saved strings if recalled */
|
//#define RECALL_FIXED /* don't reorder saved strings if recalled */
|
||||||
//#define RMAN_IGNORED /* don't consider auto right margin glitch */
|
//#define RMAN_IGNORED /* don't consider auto right margin glitch */
|
||||||
//#define SCROLLVAR_NO /* disable intra-column horizontal scroll */
|
//#define SCROLLVAR_NO /* disable intra-column horizontal scroll */
|
||||||
|
//#define SCROLLV_BY_1 /* when scrolling left/right don't move 8 */
|
||||||
//#define STRINGCASENO /* case insenstive compare/locate versions */
|
//#define STRINGCASENO /* case insenstive compare/locate versions */
|
||||||
//#define TERMIOS_ONLY /* just limp along with native input only */
|
//#define TERMIOS_ONLY /* just limp along with native input only */
|
||||||
//#define TOG4_NOFORCE /* no force 2 abreast mode with '4' toggle */
|
//#define TOG4_NOFORCE /* no force 2 abreast mode with '4' toggle */
|
||||||
@ -482,7 +483,11 @@ typedef struct WIN_t {
|
|||||||
(3 == w->maxpflgs && EU_XON == w->procflgs[0] && VARcol(w->procflgs[1])))
|
(3 == w->maxpflgs && EU_XON == w->procflgs[0] && VARcol(w->procflgs[1])))
|
||||||
#endif
|
#endif
|
||||||
#define VARleft(w) (w->varcolbeg && VARright(w))
|
#define VARleft(w) (w->varcolbeg && VARright(w))
|
||||||
|
#ifdef SCROLLV_BY_1
|
||||||
|
#define SCROLLAMT 1
|
||||||
|
#else
|
||||||
#define SCROLLAMT 8
|
#define SCROLLAMT 8
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Support for a proper (visible) row #1 whenever Curwin changes
|
// Support for a proper (visible) row #1 whenever Curwin changes
|
||||||
|
Loading…
Reference in New Issue
Block a user