Fix keybinding not being available to override through configuration settings.
commitee952be3b7cf7f24c5a43408cb37a6132cac4a31
authorHannes Schueller <hannes@yllr.net>
Wed, 1 Jan 2014 11:12:55 +0000 (1 12:12 +0100)
committerHannes Schueller <hannes@yllr.net>
Wed, 1 Jan 2014 11:12:55 +0000 (1 12:12 +0100)
tree7011200a1a62305cd75bae412ee2c42fe3d7db9b
parentdf4ad0b56caee3b89ff9a6879363a0c99b0aa56c
Fix keybinding not being available to override through configuration settings.

In the function changemapping() the linked list of keybindings is traversed in
a way the last element of the list (tail) wont be processed to rebind.
The loop iterates over all elements of the linked list until an element
which has none _next_ to it, ie: the last one, efectibly skipping the last element
in the list.

The changes fix this by iterating over all elements until finding a NULL element.

Patch by desyncr via GitHub:
https://github.com/desyncr/vimprobable/commit/050a96f849e7b14ba2e2629268ee559c5afe6856
utilities.c