Index: line.c =================================================================== --- line.c (revision 3349) +++ line.c (revision 3350) @@ -437,8 +437,10 @@ if (XOR(r1 > r2, shift)) { if (conf_core.editor.line_refraction != 0) { if (shift) { - conf_setf(CFR_DESIGN, "editor/line_refraction", -1, "%d", 2); - printf("line_refraction is set to: %d\n", conf_core.editor.line_refraction); + if (conf_core.editor.line_refraction==1) { + conf_setf(CFR_DESIGN, "editor/line_refraction", -1, "%d", 2); + printf("line_refraction is set to: %d\n", conf_core.editor.line_refraction); + } } else{ conf_setf(CFR_DESIGN, "editor/line_refraction", -1, "%d", 1); @@ -451,8 +453,10 @@ else { if (conf_core.editor.line_refraction !=0) { if (shift) { + if (conf_core.editor.line_refraction==2) { conf_setf(CFR_DESIGN, "editor/line_refraction", -1, "%d", 1); printf("line_refraction is set to: %d\n", conf_core.editor.line_refraction); + } } else{ conf_setf(CFR_DESIGN, "editor/line_refraction", -1, "%d", 2);