Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions keyCommandsDoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ def _command(self, cmd=None, arg=None):
# Each of the remaining columns provides keystrokes for one layout.
# There's one less delimiter than there are columns, hence subtracting 1 instead of 2.
self._settingsNumLayouts = arg.strip("|").count("|") - 1
if self._settingsNumLayouts < 1:
raise KeyCommandsError(
f"{self._lineNum}, settingsSection command must specify the header row for a table"
" summarising the settings"
)
elif cmd == "setting":
self._handleSetting()

Expand Down