diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-20 14:57:30 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-20 14:57:30 +1000 |
commit | 5c5a599a2a4394237e9643f23cd82f9b58492c6d (patch) | |
tree | 39790e897d57ca9b9ca72d9baa92e2aa172955e1 /Settings.c | |
parent | e25ac8557d93f3255297b4cd019bba050c3ee217 (diff) | |
parent | 9ed47a213bee9fe272e1cf16f4d45730e6b37331 (diff) |
Merge branch 'hishamhm-pull-959'
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -61,6 +61,7 @@ typedef struct Settings_ { bool accountGuestInCPUMeter; bool headerMargin; bool enableMouse; + bool vimMode; bool changed; } Settings; @@ -253,6 +254,8 @@ static bool Settings_read(Settings* this, const char* fileName) { } else if (String_eq(option[0], "right_meter_modes")) { Settings_readMeterModes(this, option[1], 1); didReadMeters = true; + } else if (String_eq(option[0], "vim_mode")) { + this->vimMode = atoi(option[1]); } String_freeArray(option); } @@ -332,6 +335,7 @@ bool Settings_write(Settings* this) { fprintf(fd, "left_meter_modes="); writeMeterModes(this, fd, 0); fprintf(fd, "right_meters="); writeMeters(this, fd, 1); fprintf(fd, "right_meter_modes="); writeMeterModes(this, fd, 1); + fprintf(fd, "vim_mode=%d\n", (int) this->vimMode); fclose(fd); return true; } |