comparison src/memline.c @ 2210:8c6a66e2b3cc vim73

Add :nbstart and :nbclose.
author Bram Moolenaar <bram@vim.org>
date Sat, 22 May 2010 21:34:09 +0200
parents 0527eb0f6918
children f8222d1f9a73
comparison
equal deleted inserted replaced
2209:d0ddf7ba1630 2210:8c6a66e2b3cc
2751 #ifdef FEAT_BYTEOFF 2751 #ifdef FEAT_BYTEOFF
2752 /* The line was inserted below 'lnum' */ 2752 /* The line was inserted below 'lnum' */
2753 ml_updatechunk(buf, lnum + 1, (long)len, ML_CHNK_ADDLINE); 2753 ml_updatechunk(buf, lnum + 1, (long)len, ML_CHNK_ADDLINE);
2754 #endif 2754 #endif
2755 #ifdef FEAT_NETBEANS_INTG 2755 #ifdef FEAT_NETBEANS_INTG
2756 if (usingNetbeans) 2756 if (netbeans_active())
2757 { 2757 {
2758 if (STRLEN(line) > 0) 2758 if (STRLEN(line) > 0)
2759 netbeans_inserted(buf, lnum+1, (colnr_T)0, line, (int)STRLEN(line)); 2759 netbeans_inserted(buf, lnum+1, (colnr_T)0, line, (int)STRLEN(line));
2760 netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line), 2760 netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line),
2761 (char_u *)"\n", 1); 2761 (char_u *)"\n", 1);
2789 return FAIL; 2789 return FAIL;
2790 2790
2791 if (copy && (line = vim_strsave(line)) == NULL) /* allocate memory */ 2791 if (copy && (line = vim_strsave(line)) == NULL) /* allocate memory */
2792 return FAIL; 2792 return FAIL;
2793 #ifdef FEAT_NETBEANS_INTG 2793 #ifdef FEAT_NETBEANS_INTG
2794 if (usingNetbeans) 2794 if (netbeans_active())
2795 { 2795 {
2796 netbeans_removed(curbuf, lnum, 0, (long)STRLEN(ml_get(lnum))); 2796 netbeans_removed(curbuf, lnum, 0, (long)STRLEN(ml_get(lnum)));
2797 netbeans_inserted(curbuf, lnum, 0, line, (int)STRLEN(line)); 2797 netbeans_inserted(curbuf, lnum, 0, line, (int)STRLEN(line));
2798 } 2798 }
2799 #endif 2799 #endif
2894 line_size = dp->db_txt_end - line_start; 2894 line_size = dp->db_txt_end - line_start;
2895 else 2895 else
2896 line_size = ((dp->db_index[idx - 1]) & DB_INDEX_MASK) - line_start; 2896 line_size = ((dp->db_index[idx - 1]) & DB_INDEX_MASK) - line_start;
2897 2897
2898 #ifdef FEAT_NETBEANS_INTG 2898 #ifdef FEAT_NETBEANS_INTG
2899 if (usingNetbeans) 2899 if (netbeans_active())
2900 netbeans_removed(buf, lnum, 0, (long)line_size); 2900 netbeans_removed(buf, lnum, 0, (long)line_size);
2901 #endif 2901 #endif
2902 2902
2903 /* 2903 /*
2904 * special case: If there is only one line in the data block it becomes empty. 2904 * special case: If there is only one line in the data block it becomes empty.