Skip to content

Commit

Permalink
Merge pull request #187 from gigamicro/patch-2
Browse files Browse the repository at this point in the history
Add command to autodetect indentation style immediately after load
  • Loading branch information
tosher committed Dec 29, 2021
2 parents 3d5fb1c + 09b57ca commit 81bf97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mediawiker.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def page_open(self, title):

with utils.p.settings_hack('translate_tabs_to_spaces', False, disabled=not utils.props.get_setting('not_translate_tabs_on_page_open')):
view.run_command(utils.cmd('insert_text'), {'position': 0, 'text': text, 'with_erase': True})
view.run_command('detect_indentation')

if utils.props.get_site_setting(self.site_active, 'show_red_links'):
utils.show_red_links(view, page)
Expand Down

0 comments on commit 81bf97c

Please sign in to comment.