justmao945 / vim-clang

Clang completion plugin for vim
ISC License
358 stars 47 forks source link

Preserve haslocaldir() flag of windows. #120

Closed KimonHoffmann closed 4 years ago

KimonHoffmann commented 6 years ago

Incautious use of lcd in various functions forced C/C++ source windows to switch to localdir mode even when they previously were following the global working directory.

While crudely so this fix makes sure the correct command is used when restoring the previous working directory so that the haslocaldir() flag is also restored along with it.