Feature: View state commands
Scenario: Toggle word wrap toggles the state
Given word wrap is disabled
When I run "editor.toggle_word_wrap"
Then word wrap is enabled
When I run "editor.toggle_word_wrap"
Then word wrap is disabled
Scenario: Toggle marker places marker on current line
Given the buffer contains "hello"
And the cursor is at row 0, col 0
When I run "editor.toggle_marker"
Then there is a marker at row 0
Scenario: Toggle marker twice removes the marker
Given the buffer contains "hello"
And the cursor is at row 0, col 0
When I run "editor.toggle_marker"
And I run "editor.toggle_marker"
Then there is no marker at row 0