You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reflowing lines that are indented using tabs (using gq for example), tabs are replaced by spaces.
Steps to reproduce the behavior:
Select a few commented lines with ShiftV, for example the two commented lines in the following code (note the tabs at the beginning):
// Gather the list of parameters for every call we're going to// make.callParams:=make([]llvm.Value, call.OperandsCount()-1)
fori:=rangecallParams {
callParams[i] =call.Operand(i)
}
Press gq
Notice how the line has become the following, with a single space for indentation completely breaking indentation:
// Gather the list of parameters for every call we're going to make.callParams:=make([]llvm.Value, call.OperandsCount()-1)
fori:=rangecallParams {
callParams[i] =call.Operand(i)
}
I would expect this to become like the following:
// Gather the list of parameters for every call we're going to make.callParams:=make([]llvm.Value, call.OperandsCount()-1)
fori:=rangecallParams {
callParams[i] =call.Operand(i)
}
When reflowing lines that are indented using tabs (using
gq
for example), tabs are replaced by spaces.Steps to reproduce the behavior:
Shift
V
, for example the two commented lines in the following code (note the tabs at the beginning):g
q
I would expect this to become like the following:
Screenshot after reflowing:
Environment:
Some settings that might be relevant:
I'm testing this with Go, which basically always uses tabs for indentation so this is a real problem for me.
The text was updated successfully, but these errors were encountered: