comparison src/fold.c @ 5735:50dbef5e774a v7.4.212

updated for version 7.4.212 Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL.
author Bram Moolenaar <bram@vim.org>
date Sun, 23 Mar 2014 15:13:05 +0100
parents 878ed73c7070
children c1aa837853ea
comparison
equal deleted inserted replaced
5734:657ade71d395 5735:50dbef5e774a
428 if (!opening && !recurse) 428 if (!opening && !recurse)
429 (void)hasFolding(lnum, NULL, &lnum_next); 429 (void)hasFolding(lnum, NULL, &lnum_next);
430 } 430 }
431 if (done == DONE_NOTHING) 431 if (done == DONE_NOTHING)
432 EMSG(_(e_nofold)); 432 EMSG(_(e_nofold));
433 #ifdef FEAT_VISUAL
434 /* Force a redraw to remove the Visual highlighting. */ 433 /* Force a redraw to remove the Visual highlighting. */
435 if (had_visual) 434 if (had_visual)
436 redraw_curbuf_later(INVERTED); 435 redraw_curbuf_later(INVERTED);
437 #endif
438 } 436 }
439 437
440 /* openFold() {{{2 */ 438 /* openFold() {{{2 */
441 /* 439 /*
442 * Open fold for current window at line "lnum". 440 * Open fold for current window at line "lnum".
805 } 803 }
806 } 804 }
807 if (!did_one) 805 if (!did_one)
808 { 806 {
809 EMSG(_(e_nofold)); 807 EMSG(_(e_nofold));
810 #ifdef FEAT_VISUAL
811 /* Force a redraw to remove the Visual highlighting. */ 808 /* Force a redraw to remove the Visual highlighting. */
812 if (had_visual) 809 if (had_visual)
813 redraw_curbuf_later(INVERTED); 810 redraw_curbuf_later(INVERTED);
814 #endif
815 } 811 }
816 else 812 else
817 /* Deleting markers may make cursor column invalid. */ 813 /* Deleting markers may make cursor column invalid. */
818 check_cursor_col(); 814 check_cursor_col();
819 815
1063 } 1059 }
1064 return -1; 1060 return -1;
1065 } 1061 }
1066 1062
1067 /* foldAdjustVisual() {{{2 */ 1063 /* foldAdjustVisual() {{{2 */
1068 #ifdef FEAT_VISUAL
1069 /* 1064 /*
1070 * Adjust the Visual area to include any fold at the start or end completely. 1065 * Adjust the Visual area to include any fold at the start or end completely.
1071 */ 1066 */
1072 void 1067 void
1073 foldAdjustVisual() 1068 foldAdjustVisual()
1101 if (has_mbyte) 1096 if (has_mbyte)
1102 mb_adjust_cursor(); 1097 mb_adjust_cursor();
1103 #endif 1098 #endif
1104 } 1099 }
1105 } 1100 }
1106 #endif
1107 1101
1108 /* cursor_foldstart() {{{2 */ 1102 /* cursor_foldstart() {{{2 */
1109 /* 1103 /*
1110 * Move the cursor to the first line of a closed fold. 1104 * Move the cursor to the first line of a closed fold.
1111 */ 1105 */