mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix relative positioning between two new elements in gprefs().
It was only prepared to position a new element relative to an existing one if the latter was specified in the saved configuration, not if the latter was another element new to this run of gprefs(). This wasn't deliberate at all: it was just due to me failing to update the 'seen' bitmap in the loop adding new elements.
This commit is contained in:
parent
940a82fd37
commit
ddb1fc15a1
@ -386,6 +386,7 @@ static void gprefs(void *sesskey, const char *name, const char *def,
|
||||
conf_set_int_int(conf, primary, j+1,
|
||||
conf_get_int_int(conf, primary, j));
|
||||
conf_set_int_int(conf, primary, pos, mapping[i].v);
|
||||
seen |= (1 << mapping[i].v);
|
||||
n++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user