Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Fixed
-
Affects Version/s: Qt Creator 4.15.2, Qt Creator 5.0.0
-
Fix Version/s: Qt Creator 7.0.0-beta1
-
Component/s: FakeVim
-
Commits:e158bfe6189ff186a09a95271ffcd6fbe042abea
Description
Enable FakeVim and start with this in a .cpp file:
struct Test { int func1; int func2; int var1; int var2; };
Correct behaviour
- Place the cursor at the end of "func1"
- Press 'i' '(' ')' to insert parentheses
- Press <Esc> to exit Insert mode
- Place the cursor at the end of "func2"
- Press '.' (dot command)
Result (correct): Parentheses are inserted at the end of "func2"
Wrong behaviour
- Place the cursor at the end of "var1"
- Press 'i' '=' '{' '}' to insert an empty initializer
- Press <Esc> to exit Insert mode
- Place the cursor at the end of "var2"
- Press '.' (dot command)
Result (wrong): Nothing happens
Expected result: An empty initializer should be inserted at the end of "var2"
Reproducible only without ClangFormat plugin