tvi: call term_done() even if ex_init() fails - neatvi - [fork] simple vi-type … | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit edaafb4c0b7285982922d36a1e8b671e3d679691 | |
parent 20373644dfc266d53328c220466e3abdd0a4284a | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Thu, 7 May 2020 02:37:37 +0430 | |
vi: call term_done() even if ex_init() fails | |
Diffstat: | |
M vi.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/vi.c b/vi.c | |
t@@ -1371,10 +1371,10 @@ int main(int argc, char *argv[]) | |
vi(); | |
else | |
ex(); | |
- if (xled || xvis) | |
- term_done(); | |
ex_done(); | |
} | |
+ if (xled || xvis) | |
+ term_done(); | |
reg_done(); | |
syn_done(); | |
dir_done(); |