ext_cmdline: lint

This commit is contained in:
Dongdong Zhou 2017-02-27 02:56:38 +00:00 committed by Björn Linse
parent 26fd70bd18
commit b7a8a76f6e
2 changed files with 9 additions and 7 deletions

View File

@ -3121,13 +3121,16 @@ static void redrawcmdprompt(void)
} else { } else {
msg_puts_attr((const char *)ccline.cmdprompt, ccline.cmdattr); msg_puts_attr((const char *)ccline.cmdprompt, ccline.cmdattr);
ccline.cmdindent = msg_col + (msg_row - cmdline_row) * Columns; ccline.cmdindent = msg_col + (msg_row - cmdline_row) * Columns;
/* do the reverse of set_cmdspos() */ // do the reverse of set_cmdspos()
if (ccline.cmdfirstc != NUL) if (ccline.cmdfirstc != NUL) {
--ccline.cmdindent; ccline.cmdindent--;
}
} }
} else } else {
for (i = ccline.cmdindent; i > 0; --i) for (i = ccline.cmdindent; i > 0; i--) {
msg_putchar(' '); msg_putchar(' ');
}
}
} }
/* /*

View File

@ -1,7 +1,6 @@
local helpers = require('test.functional.helpers')(after_each) local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen') local Screen = require('test.functional.ui.screen')
local clear, feed, execute, eq = helpers.clear, helpers.feed, helpers.execute, helpers.eq local clear, feed, eq = helpers.clear, helpers.feed, helpers.eq
local funcs = helpers.funcs
if helpers.pending_win32(pending) then return end if helpers.pending_win32(pending) then return end