diff --git a/src/callback.c b/src/callback.c index 18150270..b2bc5847 100644 --- a/src/callback.c +++ b/src/callback.c @@ -3858,10 +3858,10 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m xctx->semaphore = save; } #ifndef __unix__ - else if(state == ShiftMask) { + else if(state == ShiftMask) { int save = xctx->semaphore; if(xctx->semaphore >= 2) break; - xctx->semaphore = 0; + xctx->semaphore = 0; tcleval("next_tab"); xctx->semaphore = save; } @@ -3892,7 +3892,7 @@ static void handle_key_press(int event, KeySym key, int state, int rstate, int m } break; -#endif +#endif case XK_Right: if(state == ControlMask) { int save = xctx->semaphore; diff --git a/src/draw.c b/src/draw.c index 072f6881..d4176adf 100644 --- a/src/draw.c +++ b/src/draw.c @@ -4250,7 +4250,7 @@ void draw_graph(int i, int flags, Graph_ctx *gr, void *ct) my_strdup2(_ALLOC_ID_, &express, ntok_copy); } dbg(1, "express=|%s|\n", express); - + match = strpbrk(express, " \n\t"); if( match && (match == express || *(match - 1) != '\\')) { expression = 1; diff --git a/src/editprop.c b/src/editprop.c index 8448a706..ccef0fdb 100644 --- a/src/editprop.c +++ b/src/editprop.c @@ -604,9 +604,9 @@ char *dtoa_eng(double i, int precision) else { i *= 1e18; suffix = 'a';} if(suffix) { /* can not use my_snprintf() here due to indirect precision */ - if(suffix == 'M') + if(suffix == 'M') n = sprintf(s, "%.*gMEG", precision, i); - else + else n = sprintf(s, "%.*g%c", precision, i, suffix); } else { n = sprintf(s, "%.*g", precision, i); diff --git a/src/scheduler.c b/src/scheduler.c index fb1b321c..0af28441 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1967,7 +1967,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg * Get attribute 'attr' of rectangle number 'num' on layer 'layer' * * getprop text num attr - * Get attribute 'attr' of text number 'num', 'num' can also be the name attribute + * Get attribute 'attr' of text number 'num', 'num' can also be the name attribute * of the text object * if 'attr' is 'txt_ptr' return the text string *