Changeset 1169
- Timestamp:
- 03/14/08 17:19:47 (6 months ago)
- Files:
-
- 1 modified
-
trunk/peppy/lib/autoindent.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/lib/autoindent.py
r1168 r1169 213 213 fold = stc.GetFoldLevel(linenum)&wx.stc.STC_FOLDLEVELNUMBERMASK - wx.stc.STC_FOLDLEVELBASE 214 214 c = stc.GetCharAt(pos) 215 s = stc.GetStyleAt(pos) 215 216 self.dprint("col=%d (pos=%d), fold=%d char=%s" % (col, pos, fold, c)) 216 217 if c == ord('}'): … … 218 219 # force that here. 219 220 fold -= 1 221 elif c == ord('#') and s == 9: 222 # Force preprocessor directives to start at column zero 223 fold = 0 220 224 221 225 return fold * stc.GetIndent()
