Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 2311:962c98e4864d
Correctly initialize vi_mode when it is set in configuration file
(It was broken in e00ae0763468)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 13 Feb 2017 20:02:14 +0100 |
parents | e00ae0763468 |
children | def5f64c253d |
comparison
equal
deleted
inserted
replaced
2310:e26c7709e023 | 2311:962c98e4864d |
---|---|
825 #endif | 825 #endif |
826 } | 826 } |
827 | 827 |
828 // Set up vi_mode guard | 828 // Set up vi_mode guard |
829 settings_set_guard("vi_mode", scr_vi_mode_guard); | 829 settings_set_guard("vi_mode", scr_vi_mode_guard); |
830 if (settings_opt_get_int("vi_mode") == 1) | |
831 vi_mode = true; | |
830 | 832 |
831 parse_colors(); | 833 parse_colors(); |
832 | 834 |
833 settings_set_guard("color_background", scr_color_guard); | 835 settings_set_guard("color_background", scr_color_guard); |
834 settings_set_guard("color_general", scr_color_guard); | 836 settings_set_guard("color_general", scr_color_guard); |