mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: follow style guide
- reduce variable scope - prefer initialization over declaration and assignment - use bool to represent boolean values
This commit is contained in:
@@ -2583,10 +2583,8 @@ char *getsourceline(int c, void *cookie, int indent, bool do_concat)
|
||||
}
|
||||
|
||||
if (line != NULL && sp->conv.vc_type != CONV_NONE) {
|
||||
char *s;
|
||||
|
||||
// Convert the encoding of the script line.
|
||||
s = string_convert(&sp->conv, line, NULL);
|
||||
char *s = string_convert(&sp->conv, line, NULL);
|
||||
if (s != NULL) {
|
||||
xfree(line);
|
||||
line = s;
|
||||
|
Reference in New Issue
Block a user