Commits

Shrikant Sharat Kandula committed b898e79

Temporarily suppress error with add_update function.

Comments (0)

Files changed (1)

plugin/twitvim.vim

                 \)
 
         " Parse the output from the Twitter update call.
-        let g:output = output
-        return
-        let lines = s:format_status(a:output)
+        let lines = s:format_status_xml(a:output)
 
         " Line number where new tweet will be inserted. It should be 2 if
         " header is shown and 1 if header is hidden.
         let insline = s:curbuffer.showheader ? 2 : 1
 
-        " Add the status ID to the current buffer's statuses list.
-        call insert(s:curbuffer.statuses, s:xml_get_element(a:output, 'id'), insline)
-
-        " Add in-reply-to ID to current buffer's in-reply-to list.
-        call insert(s:curbuffer.inreplyto, s:xml_get_element(a:output, 'in_reply_to_status_id'), insline)
+        " FIXME: Add the status ID to the current buffer's statuses list.
+        let item = 0
+        call insert(s:curbuffer.items, item, insline)
 
         let twit_bufnr = bufwinnr('^'.s:twit_winname.'$')
         if twit_bufnr > 0