Repository: neovim/neovim
File: test/functional/plugin/tutor_spec.lua (Lua)

Code before:
      {0:  }                                                                               |
      {0:  } 2. Type {2:dd} to delete the line.                                                |
      {0:  }                                                                               |
      {0:  } 3. Now move to the fourth line.                                               |
      {0:  }                                                                               |
      {0:  } 4. Type {9:2}{4:dd} to delete two lines.                                              |
      {0:  }                                                                               |
      {7:✓ }{3:1)  Roses are red,                                                             }|
      {7:✓ }{3:3)  Violets are blue,                                                          }|
      {7:✓ }{3:^6)  Sugar is sweet                                                             }|
      {7:✓ }{3:7)  And so are you.                                                            }|
      {0:  }                                                                               |
      {0:  }{3:#}{5: Lesson 2.7: THE UNDO COMMAND}                                                 |
      {0:  }                                                                               |
      {0:  }{1: Press }{4:u}{1: to undo the last commands, }{4:U}{1: to fix a whole line. }                    |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the line below marked {10:✗} and place it on the first error.|
      {0:  }                                                                               |
      {0:  } 2. Type {4:x} to delete the first unwanted character.                             |
      {0:  }                                                                               |
      {0:  } 3. Now type {4:u} to undo the last command executed.                              |
      {0:  }                                                                               |
    ]])
  end)

  it("Insert text to the start of line doesn't affect highlight and sign", function()
    -- Go to lesson 1.3 and make it top line in the window
    feed('<Cmd>92<CR>zt')
    screen:expect([[
      {0:  }{3:^#}{5: Lesson 1.3: TEXT EDITING: DELETION}                                           |
      {0:  }                                                                               |
      {0:  }{1: Press }{4:x}{1: to delete the character under the cursor. }                            |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the line below marked {10:✗}.                                |
      {0:  }                                                                               |
      {0:  } 2. To fix the errors, move the cursor until it is on top of the               |
      {0:  }    character to be deleted.                                                   |
      {0:  }                                                                               |
      {0:  } 3. Press {2:the x key} to delete the unwanted character.                          |
      {0:  }                                                                               |
      {0:  } 4. Repeat steps 2 through 4 until the sentence is correct.                    |
      {0:  }                                                                               |
      {11:✗ }{3:The ccow jumpedd ovverr thhe mooon.                                            }|
      {0:  }                                                                               |
      {0:  } 5. Now that the line is correct, go on to Lesson 1.4.                         |
      {0:  }                                                                               |
      {0:  }{1:NOTE}: As you go through this tutorial, do not try to memorize everything,      |
      {0:  }      your Neovim vocabulary will expand with usage. Consider returning to     |
      {0:  }      this tutorial periodically for a refresher.                              |
      {0:  }                                                                               |
      {0:  }{3:#}{5: Lesson 1.4: TEXT EDITING: INSERTION}                                          |

Review comment (suggestion):
```suggestion
  it("inserting text at start of line doesn't affect highlight/sign", function()
```

Code after:
      {0:  }                                                                               |
      {0:  } 2. Type {2:dd} to delete the line.                                                |
      {0:  }                                                                               |
      {0:  } 3. Now move to the fourth line.                                               |
      {0:  }                                                                               |
      {0:  } 4. Type {9:2}{4:dd} to delete two lines.                                              |
      {0:  }                                                                               |
      {7:✓ }{3:1)  Roses are red,                                                             }|
      {7:✓ }{3:3)  Violets are blue,                                                          }|
      {7:✓ }{3:^6)  Sugar is sweet                                                             }|
      {7:✓ }{3:7)  And so are you.                                                            }|
      {0:  }                                                                               |
      {0:  }{3:#}{5: Lesson 2.7: THE UNDO COMMAND}                                                 |
      {0:  }                                                                               |
      {0:  }{1: Press }{4:u}{1: to undo the last commands, }{4:U}{1: to fix a whole line. }                    |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the line below marked {10:✗} and place it on the first error.|
      {0:  }                                                                               |
      {0:  } 2. Type {4:x} to delete the first unwanted character.                             |
      {0:  }                                                                               |
      {0:  } 3. Now type {4:u} to undo the last command executed.                              |
      {0:  }                                                                               |
    ]])
  end)

  it("inserting text at start of line doesn't affect highlight/sign", function()
    -- Go to lesson 1.3 and make it top line in the window
    feed('<Cmd>92<CR>zt')
    screen:expect([[
      {0:  }{3:^#}{5: Lesson 1.3: TEXT EDITING: DELETION}                                           |
      {0:  }                                                                               |
      {0:  }{1: Press }{4:x}{1: to delete the character under the cursor. }                            |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the line below marked {10:✗}.                                |
      {0:  }                                                                               |
      {0:  } 2. To fix the errors, move the cursor until it is on top of the               |
      {0:  }    character to be deleted.                                                   |
      {0:  }                                                                               |
      {0:  } 3. Press {2:the x key} to delete the unwanted character.                          |
      {0:  }                                                                               |
      {0:  } 4. Repeat steps 2 through 4 until the sentence is correct.                    |
      {0:  }                                                                               |
      {11:✗ }{3:The ccow jumpedd ovverr thhe mooon.                                            }|
      {0:  }                                                                               |
      {0:  } 5. Now that the line is correct, go on to Lesson 1.4.                         |
      {0:  }                                                                               |
      {0:  }{1:NOTE}: As you go through this tutorial, do not try to memorize everything,      |
      {0:  }      your Neovim vocabulary will expand with usage. Consider returning to     |
      {0:  }      this tutorial periodically for a refresher.                              |
      {0:  }                                                                               |
      {0:  }{3:#}{5: Lesson 1.4: TEXT EDITING: INSERTION}                                          |