Browse code

fix: tweak the quirk with inserted characters when doing CTRL+/CTRL- to change the font size, as it was inserting the + and - into the edited file

Dario Rodriguez authored on 22/08/2022 10:10:39
Showing 1 changed files
... ...
@@ -1172,12 +1172,10 @@ fprintf(stderr,"SDL_KEYDOWN: BACKSPACE%s\n",(event==&fakeevent)?" (fake)":"");
1172 1172
         } else if(event->key.keysym.sym==SDLK_PLUS && (SDL_GetModState()&KMOD_CTRL)!=0) {
1173 1173
 #warning XXX TODO: Control+shift+'+'/'-' iterates between the color permutations of the current theme in rgb, 6 in total (Control+shift+'0' resets to the default permutation)
1174 1174
                 re_changefontsize(re, 1);
1175
-                if(re->quirk_duplicates)
1176
-                        re->ignorenkeys++;
1175
+                re->ignorenkeys++;
1177 1176
         } else if(event->key.keysym.sym==SDLK_MINUS && (SDL_GetModState()&KMOD_CTRL)!=0) {
1178 1177
                 re_changefontsize(re, -1);
1179
-                if(re->quirk_duplicates)
1180
-                        re->ignorenkeys++;
1178
+                re->ignorenkeys++;
1181 1179
         } else if(event->key.keysym.sym==SDLK_0 && (SDL_GetModState()&KMOD_CTRL)!=0) {
1182 1180
                 re_changefontsize(re, 0);
1183 1181
                 if(re->quirk_duplicates)