• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Expand tabs when calculating line widths (snippets, 5aa35b9)

Created 11/14/2007, updated 3/5/2024
  • snippets

Assuming an 8-character tab stop, expand tabs when calculating line widths. This means that the results are now a true "column count" rather than a "character count".

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Update configuration to use larger backup volume (snippets, a46c336)
Add column-counting script (snippets, 4dfddee) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).