I'm trying to write something that will disable a certain mode (fci-mode) if a buffer's visible width is under a certain amount. I know about the
(window-width) function, however, that doesn't change if the window is vertically split (so the buffer is only half as wide).
Is there a method I can call that gives the visible width of a buffer in characters?
[EDIT] Stefan pointed out that
(window-width) does change when a window is split. I was testing this incorrectly.