On Wednesday, August 20, 2014 6:38:50 AM UTC-5, Edward K. Ream wrote:

> P.S.  Here is the flattened form of the class that handles the :tabnew 
command (does not require vim-mode).  In particular, note that the __call__ 
and tab_callback methods are trivial.  This is the way it is written in The 
Book.

The code got mangled.  The class is the TabNew class, but the opening lines 
came from the LoadFileAtCursor class.  The correct opening lines are::

class Tabnew:
    '''
    A class to handle Vim's :tabnew command.
    This class supports the do_tab callback.
    '''
    def __init__(self,vc):
        '''Ctor for VimCommands.tabnew class.'''
        self.vc = vc
    __name__ = ':tabnew'
        # Required.
    @others

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to