Closed pm100 closed 11 months ago
@rhysd - I also note that the hard tab expansion seems wrong to me. It always inserts 'tab_len' spaces. Surely it should insert spaces up to the next tab stop, just like the soft tab mode does
let len = self.tab_len - (self.cursor.1 % self.tab_len as usize) as u8;
spaces(len)
Surely it should insert spaces up to the next tab stop, just like the soft tab mode does
It's the current behavior. Could you try cargo run --example minimal
?
This was included in v0.2.3 release.
A second attempt. The plan was to use ratatui's new Masked feature, but that got very fiddly with feature combinations. So instead I borrowed the code from Masked and found the correct place to put it