xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 3680d9c6e7be1bcc796dd459b9ae05304c58cf2a

Fix style of some comments in int/term_title.c
To align them with code base in general.
Author: xaizek
Author date (UTC): 2019-07-25 18:00
Committer name: xaizek
Committer date (UTC): 2019-07-25 18:00
Parent(s): 6e574b82be6523d83c59d89f2ddffb062a0438ba
Signing key: 99DC5E4DB05F6BE2
Tree: 9d0c4a33d120a7dbc7b87270e07a58faa6d00f25
File Lines added Lines deleted
src/int/term_title.c 6 6
File src/int/term_title.c changed (mode: 100644) (index 2e19af265..a2a830ec5)
... ... get_title_kind(const char term[])
183 183 #endif #endif
184 184 } }
185 185
186 /* stores current terminal title into title_state.title */
186 /* Stores current terminal title into title_state.title. */
187 187 static void static void
188 188 save_term_title(void) save_term_title(void)
189 189 { {
 
... ... save_term_title(void)
198 198 try_dynload_xlib(); try_dynload_xlib();
199 199 #endif #endif
200 200
201 /* use X to determine current window title */
201 /* Use X to determine current window title. */
202 202 if(get_x11_disp_and_win(&x11_display, &x11_window)) if(get_x11_disp_and_win(&x11_display, &x11_window))
203 203 get_x11_window_title(x11_display, x11_window, title_state.title, get_x11_window_title(x11_display, x11_window, title_state.title,
204 204 sizeof(title_state.title)); sizeof(title_state.title));
 
... ... save_term_title(void)
206 206 #endif #endif
207 207 } }
208 208
209 /* restores terminal title from title_state.title */
209 /* Restores terminal title from title_state.title. */
210 210 static void static void
211 211 restore_term_title(void) restore_term_title(void)
212 212 { {
 
... ... restore_term_title(void)
232 232 } }
233 233
234 234 #if !defined(_WIN32) && defined(HAVE_X11) #if !defined(_WIN32) && defined(HAVE_X11)
235 /* loads X specific variables */
235 /* Loads X specific variables. */
236 236 static int static int
237 237 get_x11_disp_and_win(Display **disp, Window *win) get_x11_disp_and_win(Display **disp, Window *win)
238 238 { {
 
... ... get_x11_disp_and_win(Display **disp, Window *win)
249 249 return 1; return 1;
250 250 } }
251 251
252 /* gets terminal title using X */
252 /* Gets terminal title using X. */
253 253 static void static void
254 254 get_x11_window_title(Display *disp, Window win, char *buf, size_t buf_len) get_x11_window_title(Display *disp, Window win, char *buf, size_t buf_len)
255 255 { {
 
... ... get_x11_window_title(Display *disp, Window win, char *buf, size_t buf_len)
268 268 XFreeWrapper(text_prop.value); XFreeWrapper(text_prop.value);
269 269 } }
270 270
271 /* callback function for reporting X errors, should return 0 on success */
271 /* Callback function for reporting X errors, should return 0 on success. */
272 272 static int static int
273 273 x_error_check(Display *dpy, XErrorEvent *error_event) x_error_check(Display *dpy, XErrorEvent *error_event)
274 274 { {
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master