dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 7dda366ef7221e8f7b378c34d0c52914f6b72f36
parent b50d22b28aca946cdfaf9eac238bd3cf550b31bf
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Wed,  3 Apr 2013 10:32:10 +0200

Float provides more than enough precision for our usecase

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
dvtm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -41,7 +41,7 @@ int ESCDELAY; #endif typedef struct { - double mfact; + float mfact; int history; int w; int h; @@ -949,14 +949,14 @@ setlayout(const char *args[]) { static void setmfact(const char *args[]) { - double delta; + float delta; if (isarrange(fullscreen) || isarrange(grid)) return; /* arg handling, manipulate mfact */ if (args[0] == NULL) screen.mfact = MFACT; - else if (1 == sscanf(args[0], "%lf", &delta)) { + else if (1 == sscanf(args[0], "%f", &delta)) { if (args[0][0] == '+' || args[0][0] == '-') screen.mfact += delta; else