comparison src/gui_gtk_x11.c @ 26877:06a137af96f8 v8.2.3967

patch 8.2.3967: error messages are spread out Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:19:49 2022 +0000 patch 8.2.3967: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30:05 +0100
parents bce848ec8b1b
children 4dcccb2673fe
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
1505 p = mch_getenv((char_u *)"DISPLAY"); 1505 p = mch_getenv((char_u *)"DISPLAY");
1506 if (p == NULL || *p == NUL) 1506 if (p == NULL || *p == NUL)
1507 { 1507 {
1508 gui.dying = TRUE; 1508 gui.dying = TRUE;
1509 if (give_message) 1509 if (give_message)
1510 emsg(_((char *)e_opendisp)); 1510 emsg(_((char *)e_cannot_open_display));
1511 return FAIL; 1511 return FAIL;
1512 } 1512 }
1513 return OK; 1513 return OK;
1514 } 1514 }
1515 1515
1551 1551
1552 // Don't use gtk_init() or gnome_init(), it exits on failure. 1552 // Don't use gtk_init() or gnome_init(), it exits on failure.
1553 if (!gtk_init_check(&gui_argc, &gui_argv)) 1553 if (!gtk_init_check(&gui_argc, &gui_argv))
1554 { 1554 {
1555 gui.dying = TRUE; 1555 gui.dying = TRUE;
1556 emsg(_((char *)e_opendisp)); 1556 emsg(_((char *)e_cannot_open_display));
1557 return FAIL; 1557 return FAIL;
1558 } 1558 }
1559 1559
1560 return OK; 1560 return OK;
1561 } 1561 }