comparison src/screen.c @ 15555:d89c5b339c2a v8.1.0785

patch 8.1.0785: depending on the configuration some functions are unused commit https://github.com/vim/vim/commit/113e10721f42fc2500b63fe95193f8665658a90c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 20 15:30:40 2019 +0100 patch 8.1.0785: depending on the configuration some functions are unused Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jan 2019 15:45:07 +0100
parents dd725a8ab112
children 639b8318472c
comparison
equal deleted inserted replaced
15554:496f146a0836 15555:d89c5b339c2a
261 if (wp->w_buffer == buf) 261 if (wp->w_buffer == buf)
262 redraw_win_later(wp, type); 262 redraw_win_later(wp, type);
263 } 263 }
264 } 264 }
265 265
266 #if defined(FEAT_SIGNS) || defined(PROTO)
266 void 267 void
267 redraw_buf_line_later(buf_T *buf, linenr_T lnum) 268 redraw_buf_line_later(buf_T *buf, linenr_T lnum)
268 { 269 {
269 win_T *wp; 270 win_T *wp;
270 271
271 FOR_ALL_WINDOWS(wp) 272 FOR_ALL_WINDOWS(wp)
272 if (wp->w_buffer == buf && lnum >= wp->w_topline 273 if (wp->w_buffer == buf && lnum >= wp->w_topline
273 && lnum < wp->w_botline) 274 && lnum < wp->w_botline)
274 redrawWinline(wp, lnum); 275 redrawWinline(wp, lnum);
275 } 276 }
276 277 #endif
278
279 #if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
277 void 280 void
278 redraw_buf_and_status_later(buf_T *buf, int type) 281 redraw_buf_and_status_later(buf_T *buf, int type)
279 { 282 {
280 win_T *wp; 283 win_T *wp;
281 284
292 redraw_win_later(wp, type); 295 redraw_win_later(wp, type);
293 wp->w_redr_status = TRUE; 296 wp->w_redr_status = TRUE;
294 } 297 }
295 } 298 }
296 } 299 }
297 300 #endif
301
302 #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
298 /* 303 /*
299 * Redraw as soon as possible. When the command line is not scrolled redraw 304 * Redraw as soon as possible. When the command line is not scrolled redraw
300 * right away and restore what was on the command line. 305 * right away and restore what was on the command line.
301 * Return a code indicating what happened. 306 * Return a code indicating what happened.
302 */ 307 */
437 442
438 setcursor(); 443 setcursor();
439 444
440 return ret; 445 return ret;
441 } 446 }
447 #endif
442 448
443 /* 449 /*
444 * Invoked after an asynchronous callback is called. 450 * Invoked after an asynchronous callback is called.
445 * If an echo command was used the cursor needs to be put back where 451 * If an echo command was used the cursor needs to be put back where
446 * it belongs. If highlighting was changed a redraw is needed. 452 * it belongs. If highlighting was changed a redraw is needed.
927 curs_columns(TRUE); 933 curs_columns(TRUE);
928 } 934 }
929 } 935 }
930 #endif 936 #endif
931 937
932 #if defined(FEAT_SIGNS) || defined(PROTO) 938 #if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
933 void 939 void
934 update_debug_sign(buf_T *buf, linenr_T lnum) 940 update_debug_sign(buf_T *buf, linenr_T lnum)
935 { 941 {
936 win_T *wp; 942 win_T *wp;
937 int doit = FALSE; 943 int doit = FALSE;
11292 wp->w_nuw_cached = wp->w_p_nuw; 11298 wp->w_nuw_cached = wp->w_p_nuw;
11293 return n; 11299 return n;
11294 } 11300 }
11295 #endif 11301 #endif
11296 11302
11303 #if defined(FEAT_EVAL) || defined(PROTO)
11297 /* 11304 /*
11298 * Return the current cursor column. This is the actual position on the 11305 * Return the current cursor column. This is the actual position on the
11299 * screen. First column is 0. 11306 * screen. First column is 0.
11300 */ 11307 */
11301 int 11308 int
11311 int 11318 int
11312 screen_screenrow(void) 11319 screen_screenrow(void)
11313 { 11320 {
11314 return screen_cur_row; 11321 return screen_cur_row;
11315 } 11322 }
11323 #endif