mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix auto indent level adjustment
This commit is contained in:
parent
51d44ec2fb
commit
fc5fae18de
@ -5,7 +5,10 @@ Change Log
|
||||
3.7.0-beta.4 (unreleased)
|
||||
--------------------------
|
||||
|
||||
- Suppress blinking Edit menu when perform `^⇧↑` or `^⇧↓` shortcut.
|
||||
### Fixes
|
||||
|
||||
- [beta] Suppress blinking Edit menu when perform `^⇧↑` or `^⇧↓` shortcut.
|
||||
- [beta] Fix an issue where auto-inserted tab did not expand to spaces on auto indent level adjustment.
|
||||
|
||||
|
||||
|
||||
|
@ -500,7 +500,7 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi
|
||||
self.isAutomaticIndentEnabled
|
||||
else { return super.insertNewline(sender) }
|
||||
|
||||
let tab = self.isAutomaticTabExpansionEnabled ? "\t" : String(repeating: " ", count: self.tabWidth)
|
||||
let tab = self.isAutomaticTabExpansionEnabled ? String(repeating: " ", count: self.tabWidth) : "\t"
|
||||
|
||||
let ranges = self.rangesForUserTextChange as? [NSRange] ?? [self.rangeForUserTextChange]
|
||||
self.setSelectedRangesWithUndo(ranges)
|
||||
|
Loading…
Reference in New Issue
Block a user